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
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 https://github.com/vuejs/vue-next instead.
I want this for a plugin I'm building, but it's a bit tricky. I understand why #5229 was closed.
In production, the CSS from imported components is bundled into a single stylesheet. What is the URL for each import? Are they all the same? If you're creating a link tag for each one, you'll end up with a bunch of duplicates.
In development, CSS imports are converted to a JS file to support HMR. URL imports for CSS would make this more complicated, and break CSS HMR for a URL import, forcing a full reload.
We likely need something else, or should just support this on the entry file.
Describe the bug
import css file as url will become something like this:
while import js\png\svg with same grammar return the path right.
Reproduction
https://github.com/Inori-Lover/vite-can-not-import-css-as-url
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: