gulp.task("testImagemin", function () {
return gulp.src("./images/*.*")
.pipe(imagemin({
optimizationLevel: 5, //:Number :3 :0-7
progressive: true, //:Boolean :false jpg
interlaced: true, //:Boolean :false gif
multipass: true //:Boolean :false svg
}))
.pipe(gulp.dest("build/images"));
});
my side of gulp will only have this kind of error all the time. Does anyone know why? I have also reinstalled the plug-in several times, all like this
if I remove the .pipe (imagemin ()), image and normally output it to the build folder, but after adding it, I will report an error.