Closed bitstarr closed 7 years ago
Hi, i'm getting the following error:
Running "imagemin:build" (imagemin) task Warning: TypeError: pipe.then is not a function in file assets/img/app-icon.png Used --force, continuing. Warning: TypeError: pipe.then is not a function in file assets/img/foto.jpg Used --force, continuing.
with that setup:
imagemin: { build: { options: { use: [mozjpeg()] }, files: [{ expand: true, cwd: '<%=project.img%>', src: ['**/*.{png,jpg,gif}'], dest: '<%=project.dist.img%>' }] }, }
"grunt-contrib-imagemin": "*", "imagemin-mozjpeg": "5.1.0",
I don't know whats wrong. This was working for ages...
Try to use imagemin-mozjpeg 6.0.0.
Yup, use imagemin-mozjpeg@6.0.0. It's not recommended to use * as version in your dependencies since it can introduce breaking changes.
imagemin-mozjpeg@6.0.0
*
Hi, i'm getting the following error:
with that setup:
I don't know whats wrong. This was working for ages...