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
The title says it really; page reload appears to have stopped working in Vite 5 for ?raw CSS (and possibly other) imports. I checked back and it is working in the latest v4 but looks to have stopped in v5. I've created a couple of projects on StackBlitz to show it working in v4 and not in v5 (remove commented out background-color on body and save).
We're using the imports to pull related CSS into (Lit) web components, which we've done purely to keep the JS/CSS separate and make things easier to work with. Any help will be much appreciated, as is all your hard work to date. Many thanks!
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
The title says it really; page reload appears to have stopped working in Vite 5 for
?raw
CSS (and possibly other) imports. I checked back and it is working in the latest v4 but looks to have stopped in v5. I've created a couple of projects on StackBlitz to show it working in v4 and not in v5 (remove commented outbackground-color
onbody
and save).We're using the imports to pull related CSS into (Lit) web components, which we've done purely to keep the JS/CSS separate and make things easier to work with. Any help will be much appreciated, as is all your hard work to date. Many thanks!
Reproduction
https://stackblitz.com/edit/vitejs-vite-qfytfv?file=style.css
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: