cereschen/vite-plugin-svg-sprite-component

How to import multiple svg files?

Closed this issue · 2 comments

Can we make it simple like just import the parent directory, and all its svg inside the particular directory will be compiled and inserted into the dom

Yes, it can be done
https://vitejs.dev/guide/features.html#glob-import

yeah, its works, but i faced another issue, i will closed this and open a new issue.