Fix rollup scss processing
This commit is contained in:
parent
04dd2de9ff
commit
2dbca10f6a
1 changed files with 5 additions and 1 deletions
|
@ -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()]),
|
||||
|
|
Reference in a new issue