diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-06-01 18:49:56 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-02 03:49:56 +0200 |
commit | edddc7c79138bacf99d351033a75c0c15c480c59 (patch) | |
tree | c77a6de8643f94784c88d7926d33c9577218d8e9 /config | |
parent | 10768aa20418a5c3d547da33d80b9ebe3f34efb0 (diff) |
Enable stats.json analysis with Webpack Visualizer (#3509)
Diffstat (limited to 'config')
-rw-r--r-- | config/webpack/production.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js index 5e74d7b87..c93dd55e3 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -33,6 +33,10 @@ module.exports = merge(sharedConfig, { new BundleAnalyzerPlugin({ // generates report.html and stats.json analyzerMode: 'static', generateStatsFile: true, + statsOptions: { + // allows usage with http://chrisbateman.github.io/webpack-visualizer/ + chunkModules: true, + }, openAnalyzer: false, logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout }), |