cereschen / vite-plugin-svg-sprite-component

7 stars 4 forks source link

Icon cannot be link and use #5

Closed liho00 closed 3 years ago

liho00 commented 3 years ago

image

I am using react with vite js, i successfully added vite-plugin-svg-sprite-component into the plugin and the svg files are loaded into the dom but i cant xlinkHref with the symbol id, the shadow is (closed) as the screenshot above.

Izit need to insert the svg content before the app div?

liho00 commented 3 years ago

My bad, it should be #icon-blue, missing the hash tag. Thanks for the great project sir.