mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[optimizer] Compress sass assets in production (#94846)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
81b46931f8
commit
36e567b858
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
@ -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}`,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue