emitCss: false
in svelte.config.js
strips all CSS from build
#191
Labels
emitCss: false
in svelte.config.js
strips all CSS from build
#191
Describe the bug
emitCss: false
behave differently when set insidesvelte.config.js
compared to when passed as a parameter directly tovite-plugin-svelte
. It completely strips all CSS from the output build, instead of inlining it in the resulting JS as expected.Reproduction
Setup
npm init vite
npm install
Vite Config
vite.config.js
to includeemitCss: false
npm run build
dist/assets/index.*.js
contains the required CSS. Searching for "text-align" is a quick check.Svelte Config
vite.config.js
from previous test.svelte.config.js
to includeemitCss: false
npm run build
dist/assets/index.*.js
contains the required CSS. Searching for "text-align" is a quick check. It does not and no style information is written as part of the build.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: