Skip to content

Commit

Permalink
perf: remove stats.json generation in webpack (mastodon#10290)
Browse files Browse the repository at this point in the history
* perf: remove stats.json generation in webpack

* fix code comment
  • Loading branch information
nolanlawson authored and Gargron committed Mar 16, 2019
1 parent f6ddc4f commit aed427f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions config/webpack/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,8 @@ module.exports = merge(sharedConfig, {
cache: true,
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/,
}),
new BundleAnalyzerPlugin({ // generates report.html and stats.json
new BundleAnalyzerPlugin({ // generates report.html
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
}),
Expand Down

0 comments on commit aed427f

Please sign in to comment.