new Images(config, liveReloadOptions, paths)
Images contructor
Parameters:
| Name | Type | Description |
|---|---|---|
config |
Object | Class config |
liveReloadOptions |
Object | Livereload options |
paths |
Object | Array | Default config paths |
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
distDir |
String | Default config destination dir |
outDir |
String | Default config output dir |
paths |
Object | Array | Paths config |
processorName |
String | Processor minify name (default is `gulp-imagemin`) |
processor |
function | Processor function (get from initialiaze as `require(this.processorName)` |
liveReloadOptions |
Object | Livereload options plugin |
processorOptions |
Object | Processor options |
distDir |
String | Distributive folder from config |
outDir |
String | Output folder from config |
Methods
-
minify()
-
Run minify task
- Source:
-
runImageMinify(path)
-
Run image minify task
Parameters:
Name Type Description pathObject Next path for minify - Source: