jpkleemans / vite-svg-loader

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

feature request: pass per-instance prefix to SVGO #144

Open jirizavadil opened 2 months ago

jirizavadil commented 2 months ago

problem: 2 instances of (same .svg) inline SVGs (loaded as components) will have same ids -> broken gradients, masks, ...

SVGO itself is only able to manage prefixes per file, but that only works as long as one instance of .svg file appears within at one time.

is this possible to resolve by vite-svg-loader?