[optimizer] Compress sass assets in production (#94846)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Jonathan Budzenski 2021-03-30 09:06:27 -05:00 committed by GitHub
parent 81b46931f8
commit 36e567b858
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -171,7 +171,7 @@ export function getWebpackConfig(bundle: Bundle, bundleRefs: BundleRefs, worker:
webpackImporter: false,
implementation: require('node-sass'),
sassOptions: {
outputStyle: 'nested',
outputStyle: worker.dist ? 'compressed' : 'nested',
includePaths: [Path.resolve(worker.repoRoot, 'node_modules')],
sourceMapRoot: `/${bundle.type}:${bundle.id}`,
},