vite-svg-loader icon indicating copy to clipboard operation
vite-svg-loader copied to clipboard

feature request: pass per-instance prefix to SVGO

Open jirizavadil opened this issue 2 months ago • 0 comments

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?

jirizavadil avatar Apr 15 '24 10:04 jirizavadil