cereschen / vite-plugin-svg-sprite-component

7 stars 4 forks source link

How to import multiple svg files? #4

Closed liho00 closed 3 years ago

liho00 commented 3 years ago

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

cereschen commented 3 years ago

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

liho00 commented 3 years ago

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.