Enable stats.json analysis with Webpack Visualizer (#3509)

lolsob-rspec
Nolan Lawson 2017-06-01 18:49:56 -07:00 committed by Eugen Rochko
parent 2c511bbad4
commit 1a543944c8
1 changed files with 4 additions and 0 deletions

View 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
}),