Answer the question
In order to leave comments, you need to log in
Imageoptim runs third party software. WHY?
using GULP I collect the project. I decided to try image compression. googled and found such a satya in it there is such a fragment
Gulp
gulp-imagemin
At the time of writing, there is no Gulp plugin that uses ImageOptim.
Note: The folks at Etsy have found that adding just 160Kb of images to their pages increases mobile abandonment by 12%. If you can't reduce the number of images on your pages, at least optimize them.
gulp.task('images', function() {
return gulp.src('./app/view/img/*')
.pipe(imageOptim.optimize())
.pipe(gulp.dest('dist/i/'));
});
$ gulp images
[11:24:04] Using gulpfile ~/projects/project/gulpfile.js
[11:24:04] Starting 'images'...
Answer the question
In order to leave comments, you need to log in
What OS do you have?
I did not use this package, but the description says that there is a dependency on the ImageOptim-CLI package, which is not supported on Windows and Linux.
I use gulp-imagemin and imagemin-pngquant
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question