Browse Source

Changes to analyze prod build

main
Eric Amodio 3 years ago
parent
commit
42aca90f2c
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      package.json
  2. +1
    -1
      webpack.config.js

+ 1
- 1
package.json View File

@ -10131,7 +10131,7 @@
]
},
"scripts": {
"analyze:bundle": "webpack --env analyzeBundle",
"analyze:bundle": "webpack --mode production --env analyzeBundle",
"analyze:deps": "webpack --env analyzeDeps",
"build": "webpack --mode development",
"build:extension": "webpack --mode development --config-name extension",

+ 1
- 1
webpack.config.js View File

@ -98,7 +98,7 @@ function getExtensionConfig(target, mode, env) {
}
if (env.analyzeBundle) {
plugins.push(new BundleAnalyzerPlugin());
plugins.push(new BundleAnalyzerPlugin({ analyzerPort: 'auto' }));
}
return {

Loading…
Cancel
Save