Fix rollup scss processing

This commit is contained in:
Tobias Berger 2021-09-27 12:30:23 +02:00
parent 04dd2de9ff
commit 2dbca10f6a

View file

@ -46,6 +46,10 @@ export default {
svelte({ svelte({
preprocess: sveltePreprocess({ preprocess: sveltePreprocess({
sourceMap: true, sourceMap: true,
scss: scss({
outputStyle: production ? "compressed" : "expanded",
}),
postcss: postcss([autoprefixer()]),
}), }),
compilerOptions: { compilerOptions: {
// enable run-time checks when not in production // enable run-time checks when not in production
@ -55,7 +59,7 @@ export default {
// these are necessary for non-component styles // these are necessary for non-component styles
// located in ./src/styles/*.scss // located in ./src/styles/*.scss
scss({ scss({
outputStyle: !production ? "compressed" : "expanded", outputStyle: production ? "compressed" : "expanded",
}), }),
// css({ output: "bundle.css" }), // Redundant // css({ output: "bundle.css" }), // Redundant
postcss([autoprefixer()]), postcss([autoprefixer()]),