Answer the question
In order to leave comments, you need to log in
Don't want to compress gulp imagemin files?
Hello everyone, I ran into such a problem that galp does not want to compress pictures, namely, it writes
Here is the section where the code for compression is registered, help, I can’t find anything about this for half an hour.[23:34:14] gulp-imagemin: Minified 0 images
gulp.task('image-compress', function() {
return gulp.src('./assets/app/img/**/*.*')
.pipe(plumber())
.pipe(imagemin({
progressive: true,
optimizationLevel:3,
svgoPlugins: [{removeViewBox: false}],
use: [pngquant()],
interlaced: true
}))
.pipe(gulp.dest('assets/build/img'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question