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
Vite building will ignore SVG files and remove styles about them when vue get asset url only used in style. Though I can move it to publicDir, there may be many SVGs in a project and it's meaningless to distinguish whether they are imported by javascript or not, as the former cannot be placed in publicDir and will be packaged correctly.
Run npm run dev, move your cursor over the text, it will change to SVG style.
Run cd dist, http-server, move your cursor over the text, it will change to default text edit cursor style.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Vite building will ignore SVG files and remove styles about them when vue get asset url only used in style. Though I can move it to
publicDir
, there may be many SVGs in a project and it's meaningless to distinguish whether they are imported by javascript or not, as the former cannot be placed inpublicDir
and will be packaged correctly.Reproduction
https://stackblitz.com/edit/vitejs-vite-ggraezvb
Steps to reproduce
Run
npm run dev
, move your cursor over the text, it will change to SVG style.Run
cd dist
,http-server
, move your cursor over the text, it will change to default text edit cursor style.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: