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
When build.cssCodeSplit is set to false, and build.manifest is true, the CSS that's generated is not included in the manifest.json file - which seems necessary for using the Vite backend integration directions, where you're not using the generated dist/index.html (which does link to the generated CSS)
Reproduction
I setup an example repo, which is an app created by running yarn create @vitejs/app, selecting vue and the non-TS variant. The only change made is to vite.config.js to disable cssCodeSplit and enable manifest generation.
After running npx vite build, a file named style.2bb9ff70.css was generated, but no mention of it appears in dist/manifest.json
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Provide a description in this issue that describes the bug.
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 https://github.com/vuejs/vue-next instead.
Looks like #6477 duplicates this, but it has more discussion there. I'll close this in favour of that to keep the issues lean. Please subscribe to that issue to get notifications when that's addressed.
Describe the bug
When build.cssCodeSplit is set to false, and build.manifest is true, the CSS that's generated is not included in the manifest.json file - which seems necessary for using the Vite backend integration directions, where you're not using the generated
dist/index.html
(which does link to the generated CSS)Reproduction
I setup an example repo, which is an app created by running
yarn create @vitejs/app
, selectingvue
and the non-TS variant. The only change made is tovite.config.js
to disable cssCodeSplit and enable manifest generation.After running
npx vite build
, a file namedstyle.2bb9ff70.css
was generated, but no mention of it appears indist/manifest.json
The contents of
dist/manifest.json
are:System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: