I
I
Ilya Serov2017-10-21 23:37:00
gulp.js
Ilya Serov, 2017-10-21 23:37:00

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'));
});

PS pictures throws, but does not compress.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Smirnov, 2017-10-22
@JavaIlya

Why is imagemin-pngquant not giving a result?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question