about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-06-01 18:49:56 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-06-02 03:49:56 +0200
commitedddc7c79138bacf99d351033a75c0c15c480c59 (patch)
treec77a6de8643f94784c88d7926d33c9577218d8e9 /config
parent10768aa20418a5c3d547da33d80b9ebe3f34efb0 (diff)
Enable stats.json analysis with Webpack Visualizer (#3509)
Diffstat (limited to 'config')
-rw-r--r--config/webpack/production.js4
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
     }),