vite-plugin-svg-sprite icon indicating copy to clipboard operation
vite-plugin-svg-sprite copied to clipboard

Doesn't work with Storybook

Open Rusinas opened this issue 2 years ago • 2 comments

Hi. Found your plugin and it's the only one that at least do something in my case.

I am trying to create svg sprite and use it inside storybook (Vite + Vue2), but all of the plugins I tried before did absolutely nothing or cause errors. Yours, in other hand, create the sprite and include it in the DOM, but it happened AFTER the Vite build, so this is happening: image

I don't know how to solve this. I can see all my icons in the DOM: image

But none of them work: image

But the ID's are matching: image image

Weird stuff :(

Rusinas avatar Jun 27 '22 12:06 Rusinas

I am stupid nevermind. Id's of symbols don't need '#' lol

Rusinas avatar Jun 27 '22 12:06 Rusinas

No problem. I will close this issue if there are no anything else.

meowtec avatar Jun 27 '22 13:06 meowtec