jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
585 stars 61 forks source link

adding ?skipsvgo url option #43

Closed mdunisch closed 2 years ago

mdunisch commented 2 years ago

I had a few svg icons that need other options for the optimization. So a one fits all SVGO config dont fit here.

As a quick fix i added a option to skip svgo for a specific file

mdunisch commented 2 years ago

@jpkleemans can you have a look into this PR? We really need this functionality

mdunisch commented 2 years ago

hey @jpkleemans your are right - i changed the return types (typescript and docs) as suggested! Could you have a 2nd look?