-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Describe the bug
Old css filenames will be still part of the js files in the dist folder. As Astro builds the pages using vite in the background, the css filenames will be also inside the __vite__mapDeps.
To Reproduce
I created an Astro setup on Stackblitz: https://stackblitz.com/edit/astro-purge-css-ttdz5pkh.
There, you can find an outdated css filename inside the generated OtherComponent.<hash>.js file in the dist folder after building.
- Go to Stackblitz
- run
npm run buildif it didn’t on startup - Open the
OtherComponent.<hash>.jsfile in thedist/_astrofolder. - See that there is a
index.<hash>.cssfile, that was not replaced with the new filename.
Expected behavior
The css filenames should also be replaced inside the js files in the build output.
Screenshots
Screenshot of a file, that contains a link to a css file, that does not exist anymore in the dist folder.
Additional context
Astro Version: 5.16.1
Astro PurgeCSS: 7.0.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels