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