jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
554 stars 58 forks source link

Preserve viewbox #123

Closed Aybee5 closed 7 months ago

Aybee5 commented 9 months ago

120 mentions a way to preserve 'viewbox', I've spent some time experimenting with how to safeguard that before finally seeing the PR. It would be helpful if the PR got merged 🙏🏾

jpkleemans commented 7 months ago

Thanks for mentioning it! I'll merge it soon, please follow the progress at the PR

MickL commented 6 months ago

Has this been published @jpkleemans ? I am on 5.1.0 and viewbox is not preserved.

C-gotoh commented 4 months ago

@MickL The mentioned PR just adds documentation how to change the configuration to preserve the viewBox, it does not need to be merged for you to apply it. Unfortunately the default setting used in the svgo library won't change in the near future.