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
In the old version I could easily reference my specific css file in the manifest, but in the new format it seems to use the auto generated name in all three places.
I saw that the migration document talked about this in "library mode" which I'm currently not using. If this is an intended change outside of "library mode" as well then it should at least be documented as a breaking change.
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
In Vite 5 and 6 up to beta 4 our styles where in a file called
styles.css
in the manifest file.6.0.0-beta4 and below
6.0.0-beta5 and forward
In the old version I could easily reference my specific css file in the manifest, but in the new format it seems to use the auto generated name in all three places.
I saw that the migration document talked about this in "library mode" which I'm currently not using. If this is an intended change outside of "library mode" as well then it should at least be documented as a breaking change.
Reproduction
https://stackblitz.com/edit/vitejs-vite-kfviyh?file=build-result%2Fvite-manifest.json
Steps to reproduce
npm run build
in the linked stackblitz and check the manifest file (or just check the already built manifest file).This is the vite.config.mjs used in the stackblitz.
The style file is imported into
src/main.js
.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: