Closed PaulMaly closed 3 years ago
You now need a CSS plugin to extract the CSS to an external file, but you can still use the emitCSS: false
option to instead embed code to add the style tags inside the JS.
I tried to use emitCSS: false
option like this:
svelte({
compilerOptions: {
// enable run-time checks when not in production
dev: !production,
},
emitCSS: false,
}),
But it still produce the same error on npm run build
. What am I doing wrong?
UPDATE:
For further readers, the option actually named emitCss
and works as @Conduitry said.
Hi all!
I've got a strange error when just remove
rollup-plugin-css-only
from the rollup pipeline of the standard svelte template:Can we still use svelte without obligatory moving CSS to a separate file or this way was declined?