Skip to content

Commit 0bcd6b4

Browse files
committed
use bundle analyzer for local production builds
1 parent a5d172c commit 0bcd6b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.E2E_PORT = 4201;
88
exports.PROD_PORT = 8086;
99
exports.UNIVERSAL_PORT = 8001;
1010

11-
exports.SHOW_WEBPACK_BUNDLE_ANALYZER = false;
11+
exports.SHOW_WEBPACK_BUNDLE_ANALYZER = true;
1212

1313
/**
1414
* These constants set whether or not you will use proxy for Webpack DevServer

webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const commonConfig = (function webpackConfig(): WebpackConfig {
243243
}),
244244
...MY_CLIENT_PRODUCTION_PLUGINS
245245
);
246-
if (!E2E && !WATCH && !UNIVERSAL && SHOW_WEBPACK_BUNDLE_ANALYZER) {
246+
if (!E2E && !WATCH && !UNIVERSAL && !PUBLISH && SHOW_WEBPACK_BUNDLE_ANALYZER) {
247247
config.plugins.push(new BundleAnalyzerPlugin({ analyzerPort: 5000 }));
248248
}
249249
}

0 commit comments

Comments
 (0)