Inlined CSS is not working in SSR after 2.9 release #7913
Labels
feat: css
feat: ssr
p2-edge-case
Bug, but has workaround or limited in scope (priority)
regression
The issue only appears after a new release
Describe the bug
I have a setup where I write inlined CSS in
index.html
file. I expect this inlined CSS to work as it is in dev-server and it did work before 2.9 however after 2.9 the inlined CSS turns into something like this in the source -Apparently, it is happening during
vite.transformIndexHtml
API. It returns new HTML with proxy script instead of actual inlined css. Due to this the CSS is not applied during the dev-server.The build continues to work fine.
Reproduction
https://stackblitz.com/edit/github-12zodn-vbxsug?file=index.html&terminal=dev
Exactly same example on Vite 2.8.6 - https://stackblitz.com/edit/github-12zodn-34x7n1?file=package.json&terminal=dev (works as expected)
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: