jpkleemans / vite-svg-loader

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

Support ?raw parameter to get the string instead of a component #20

Closed drgarlic closed 3 years ago

drgarlic commented 3 years ago

Hi !

99% of the time we want a component but it happens that we need to have the raw value of an svg. Currently in those cases it's not possible to have the raw value of the file as it is without the plugin. It'd be awesome if this parameter was added.

jpkleemans commented 3 years ago

This is now supported, from version 2.2.0