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
I use <link rel="stylesheet" href="normalize.css"> in index.html,
but this css is 404 in development but got processed in production build.
I think it is inconsistent behavior.
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.
bluwy
changed the title
link css in index.html is inconsistent between development and production build
Assets referencing libraries with bare specifiers in HTML do not work in dev
Oct 29, 2023
Describe the bug
I use
<link rel="stylesheet" href="normalize.css">
inindex.html
,but this css is 404 in development but got processed in production build.
I think it is inconsistent behavior.
Reproduction
https://stackblitz.com/edit/vitejs-vite-yegqau
Steps to reproduce
npm run dev
, the css is lostnpm run build && npm run preview
, the css works well.It is inconsistent behavior.
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: