jpkleemans / vite-svg-loader

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

Add support for base64 #111

Closed eliottvincent closed 7 months ago

eliottvincent commented 1 year ago

Hello! Thanks for this plugin

I added support for 'data' param in order to load an SVG as base64. This is useful for SVG inlining.

leonelv commented 10 months ago

lol i was about to make the same PR, did the changes locally with https://www.npmjs.com/package/patch-package

jpkleemans commented 7 months ago

Inline SVG's are now supported by Vite v5. See https://github.com/vitejs/vite/pull/14643