Optimize PNG, JPG, GIF, SVG images with gulp task.
Optimize PNG, JPEG, GIF, SVG images with gulp task.
$ npm install --save-dev gulp-image
This is an example of
const gulp = ;const image = ;gulp;gulp;
You can pass an object to
image() as argument such as following:
false for optimizers which you don't want to apply. And you can set
concurrent option to limit the max concurrency in execution.
Optionally you may pass enable and disable options to svgo: