Комрады хелп!
function img ()
{
return src([path.src.img, source + '/images/**/__*.svg'])
.pipe (load.webp({ quality: 70 }))
.pipe (dest(path.build.img))
.pipe (src(path.src.img))
.pipe (load.imagemin({
progressive: true,
svgoPlugins: [{ removeViewBox: false }],
interlaced: true,
// use: [load.pngquant()], требует х64, у меня х32
optimizationLevel: 5
}))
.pipe (dest(path.build.img))
.pipe (browserSync.stream());
}
не работает imagemin с png
версия nodejs 12x
версия gulp-imagemin: "^7.1.0"
вылетает с такой ошибкой:
[14:09:58] 'img' errored after 1.07 min
[14:09:58] Error in plugin "gulp-imagemin"
Message:
spawn UNKNOWN
Details:
errno: UNKNOWN
code: UNKNOWN
syscall: spawn
fileName: D:\project_GULP\projects\crosschem_v3\source\image s\equipment\DESO_full_tanks.png
domainEmitter: [object Object]
domainThrown: false
[14:09:58] 'default' errored after
Спасибо!