imagemin / imagemin-svgo

SVGO plugin for imagemin
MIT License
125 stars 28 forks source link

TypeError in plugin "gulp-imagemin": Cannot set property 'multipassCount' of undefined #39

Closed eballeste closed 4 years ago

eballeste commented 4 years ago

traced this error to this line

svgo.optimize needs a second info parameter

changing this line to: return svgo.optimize(buffer, {}).then(result => Buffer.from(result.data));

fixes the issue for me

eballeste commented 4 years ago

https://github.com/svg/svgo/pull/1175

eballeste commented 4 years ago

fixed with svgo:1.3.2