vite-svg-loader
vite-svg-loader copied to clipboard
Vite plugin to load SVG files as Vue components
We were wondering if you'd accept a PR or had an idea if its possible to make `?component` configurable? We're migrating away from https://github.com/nuxt-community/svg-module#vue-svg-loader which uses the `?inline` url query...
Hi! I try to implement `Icon Base` component based on the prop name but attributes(class, width, height) are not inherited. I tried instead ``` defineAsyncComponent(() => import(`../assets/${props.name}.svg?component`))``` with any component...
this not work(when add ?url , it'work) The introduction of plug-ins should not cause problems with normal use
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,...