Answer the question
In order to leave comments, you need to log in
Setting up gulp-imagemin, how to remove re-optimization?
gulp.task("images", function () {
return gulp.src("img/**/*.{png,jpg,gif}")
.pipe(imagemin([
imagemin.optipng({
optimizationlevel: 3
}),
imagemin.jpegtran({
progressive: true
})
]))
.pipe(gulp.dest("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