Gulp Imagemin Doesn't End

This is my Gulp task:

//Image Optimization gulp.task( 'imagemin', function () { return gulp.src( imageDir + '**/*.{png,jpg,JPG,svg}' ) .pipe( imagemin( { progressive: true, use: [ pngquant({quality: 20 - 30}), jpeg({max: 50}) ], optimizationLevel: 7 } ) ) .pipe( gulp.dest( imageDir ) ); } ) 

I use gulp imagemin and "imagemin-pngquant" as well as "imagemin-jpegoptim"

In my source I have two images, one jpg and one png. Jpg is compressed, but not png.

This is what my CLI looks like: enter image description here

No mistakes, no finish.

+5
source share

Source: https://habr.com/ru/post/1241422/


All Articles