Closed Andrea-Dispe closed 3 years ago
Had the same problem. The issue is you're still calling imagemin.jpegtran
in your config, which was replaced by imagemin.mozjpeg
in v7.0.0.
// old
imagemin.jpegtran({
progressive: true,
}),
// new
imagemin.mozjpeg({
progressive: true,
}),
Had the same problem. The issue is you're still calling
imagemin.jpegtran
in your config, which was replaced byimagemin.mozjpeg
in v7.0.0.// old imagemin.jpegtran({ progressive: true, }), // new imagemin.mozjpeg({ progressive: true, }),
Thank you very much. It works now!
I am getting this error whenever I try to make imagemin work for any kind of image:
[17:03:45] Starting 'imgmin'... [17:03:45] 'imgmin' errored after 3.11 ms [17:03:45] TypeError: imagemin.jpegtran is not a function at imgmin (D:\Dropbox\Side Projects\JS learning\dev-gulp\gulpfile.js:85:18) at bound (domain.js:419:14) at runBound (domain.js:432:12) at asyncRunner (D:\Dropbox\Side Projects\JS learning\dev-gulp\node_modules\async-done\index.js:55:18) at processTicksAndRejections (internal/process/task_queues.js:75:11)
I have: node version 12.13.1 npm version 6.12.1 gullp cli version: 2.2.0 gulp local version: 4.0.2
this is my gulpfile.js:
`
let mainDir = 'gulp project test';
I seem unable to find any solution to this problem.