]> cat aescling's git repositories - mastodon.git/commitdiff
Enable stats.json analysis with Webpack Visualizer (#3509)
authorNolan Lawson <nolan@nolanlawson.com>
Fri, 2 Jun 2017 01:49:56 +0000 (18:49 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 2 Jun 2017 01:49:56 +0000 (03:49 +0200)
config/webpack/production.js

index 5e74d7b87bfd759ab510c766bf8e25bcfee278a7..c93dd55e3095c3960e58c4efcb6c2c262f72255f 100644 (file)
@@ -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
     }),