porsager / rollup-plugin-svgo

✂️ A rollup plugin to import svg files processed with svgo
Do What The F*ck You Want To Public License
22 stars 7 forks source link

Refactor/update to v2 of svgo #7

Closed ZuperZee closed 2 years ago

ZuperZee commented 3 years ago

Because of some breaking changes to svgo and changes to how the config is written in v2.

The optimize is changed to be synchronous. The default options is removed. Options is set directly in the optimize function. Added an option to change the optimize function.

https://github.com/svg/svgo/releases/tag/v2.0.0

porsager commented 2 years ago

Thanks a lot! Sorry for the late reply, I completely missed this :-(