Reproduction
Bug
When setting build.cssCodeSplit: false
then the CSS is missing in the dist/manifest.json
(dist/client/manifest.json
if using vite-plugin-ssr).
Reproduction Steps
-
yarn install yarn dev
Go to https://localhost:3000 and observe the layout.
-
yarn prod
Go to https://localhost:3000 and observe the layout is broken; the CSS is missing.
Also observe that
dist/client/manifest.json
doesn't include any CSS. -
Remove
build.cssCodeSplit: false
then run the following again.yarn prod
Observe how
dist/client/manifest.json
includes the CSS.Also go to https://localhost:3000 and observe the layout is working again; the CSS is included.