commit: edddc7c79138bacf99d351033a75c0c15c480c59
parent: 10768aa20418a5c3d547da33d80b9ebe3f34efb0
Author: Nolan Lawson <nolan@nolanlawson.com>
Date: Thu, 1 Jun 2017 18:49:56 -0700
Enable stats.json analysis with Webpack Visualizer (#3509)
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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
}),