You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue using VitePluginSvgSprite with latest (5.2) Vite version. When I run vite (local dev mode) - everything works fine, but when I'm running vite build && vite preview - plugin does not inject icon sprite to index.html
Can confirm that this is broken as of 5.2.0-beta.0. Imported SVGs are not included in the build. I'm not certain, but I suspect it's due to them being considered "unused" by the built-in asset plugin and pruned from the build output. If that's the case, I believe this PR may be the culprit.
Hi!
I'm having an issue using VitePluginSvgSprite with latest (5.2) Vite version. When I run
vite
(local dev mode) - everything works fine, but when I'm runningvite build && vite preview
- plugin does not inject icon sprite to index.htmlReproduction link:
https://codesandbox.io/p/devbox/svg-sprite-with-vite-5-2-8z85wr
For now, I've downgraded to vite 5.1 :(
The text was updated successfully, but these errors were encountered: