CSS with encoding UTF-8 with BOM generates \feff #10043
Labels
inconsistency
Inconsistency between dev & build
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
I'm including multiple .css files via
link
What I expect is that
npm run dev
andnpm run build && npm run preview
have the same stylingWhat actually happens is that the first entry in the second .css file breaks because Vite generates
\feff
in the outputReproduction
https://github.com/daveychu/vite-css-utf-8-with-bom-bug
Run
npm run dev
-> Red textRun
npm run build && npm run preview
-> Not red textSee
dist\assets\*.css
for\feff
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: