Xulai / broccoli-imagemin

Use imagemin in your broccoli build pipeline
ISC License
7 stars 2 forks source link

Pngquant #5

Open ghost opened 8 years ago

ghost commented 8 years ago

PngQuant is not installed by default with imagemin, and such attempting to use the plugin with the lossyPNG options will throw an error. I suggest bundling this into your module as a dependancy.

RustyToms commented 7 years ago

broccoli-imagemin allows an imagemin v3.2, which doesn't have pngquant. pngquant was removed as a default property in imagemin v3.2.0. So if you force the installation of imagemin v3.1.0 in your package.json it should work.

https://stackoverflow.com/questions/44207550/ember-cli-imagemin-lossypng-imagemin-pngquant-is-not-a-function/44274735#44274735