Vite 6.0.1 uses "hashed" name for style in manifest file #18807
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
regression
The issue only appears after a new release
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: