perf: remove stats.json from webpack (#1098)

I was not ever really looking at this, and it seems to add compilation time
This commit is contained in:
Nolan Lawson 2019-03-15 23:26:22 -07:00 committed by GitHub
parent ff98c59237
commit ffd570f8b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -94,15 +94,10 @@ module.exports = {
}) })
] : [ ] : [
new BundleAnalyzerPlugin({ // generates report.html and stats.json new BundleAnalyzerPlugin({ // generates report.html
analyzerMode: 'static', analyzerMode: 'static',
generateStatsFile: true,
statsOptions: {
// allows usage with http://chrisbateman.github.io/webpack-visualizer/
chunkModules: true
},
openAnalyzer: false, openAnalyzer: false,
logLevel: 'silent' // do not bother Webpacker, who runs with --json and parses stdout logLevel: 'silent'
}) })
]), ]),
devtool: dev ? 'inline-source-map' : 'source-map', devtool: dev ? 'inline-source-map' : 'source-map',