-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
inconsistencyInconsistency between dev & buildInconsistency between dev & buildp2-edge-caseBug, but has workaround or limited in scope (priority)Bug, but has workaround or limited in scope (priority)
Description
Describe the bug
I'm including multiple .css files via link
What I expect is that npm run dev and npm run build && npm run preview have the same styling
What actually happens is that the first entry in the second .css file breaks because Vite generates \feff in the output
Reproduction
https://github.com/daveychu/vite-css-utf-8-with-bom-bug
Run npm run dev -> Red text
Run npm run build && npm run preview -> Not red text
See dist\assets\*.css for \feff
System Info
System:
OS: Windows 10 10.0.19044
CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Memory: 5.14 GB / 15.95 GB
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.1266.0), Chromium (105.0.1343.27)
Internet Explorer: 11.0.19041.1566
npmPackages:
vite: ^3.1.0 => 3.1.0Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
inconsistencyInconsistency between dev & buildInconsistency between dev & buildp2-edge-caseBug, but has workaround or limited in scope (priority)Bug, but has workaround or limited in scope (priority)