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({
|
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()]),
|
||||||
|
|
Reference in a new issue