1
I have a task and would like to know how to improve image optimization? Follow my script below:
gulp.task(
'build-img',
() =>
gulp.src('assets/img/**/*')
.pipe(imagemin( {
interlaced: true,
progressive: true,
optimizationLevel: 2,
svgoPlugins: [{
removeViewBox: true
}]
}))
.pipe(gulp.dest('dist/images'))
)
I read in the documentation that it goes from 0 - 10 i level. But the optimizations are static.