Skip to content

Commit

Permalink
Changes to analyze prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Feb 6, 2022
1 parent 0a6c6cc commit 42aca90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -98,7 +98,7 @@ function getExtensionConfig(target, mode, env) {
}

if (env.analyzeBundle) {
plugins.push(new BundleAnalyzerPlugin());
plugins.push(new BundleAnalyzerPlugin({ analyzerPort: 'auto' }));
}

return {
Expand Down

0 comments on commit 42aca90

Please sign in to comment.