Skip to content

Commit

Permalink
Adds SCSS as sideEffects
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Apr 30, 2020
1 parent 8146b35 commit af271bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@
},
"sideEffects": [
"./webpackShims/*.js",
"src/plugins/console/public/application/models/legacy_core_editor/mode/*.js"
"./src/plugins/console/public/application/models/legacy_core_editor/mode/*.js"
],
"engines": {
"node": "10.19.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/kbn-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
},
},
],
sideEffects: true,
},
{
test: /\.scss$/,
Expand Down Expand Up @@ -261,6 +262,7 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
loader: require.resolve('./theme_loader'),
},
],
sideEffects: true,
},
{
test: /\.(woff|woff2|ttf|eot|svg|ico|png|jpg|gif|jpeg)(\?|$)/,
Expand Down
4 changes: 1 addition & 3 deletions x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"test:jest": "node scripts/jest",
"test:mocha": "node scripts/mocha"
},
"sideEffects": [
"./webpackShims/*.js"
],
"sideEffects": false,
"kibana": {
"build": {
"intermediateBuildDirectory": "build/plugin/kibana/x-pack",
Expand Down

0 comments on commit af271bf

Please sign in to comment.