Skip to content

Commit c72c308

Browse files
nolanlawsonhiyuki2578
authored andcommitted
perf: remove stats.json generation in webpack (mastodon#10290)
* perf: remove stats.json generation in webpack * fix code comment
1 parent f0cb26d commit c72c308

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

config/webpack/production.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,8 @@ module.exports = merge(sharedConfig, {
5757
cache: true,
5858
test: /\.(js|css|html|json|ico|svg|eot|otf|ttf|map)$/,
5959
}),
60-
new BundleAnalyzerPlugin({ // generates report.html and stats.json
60+
new BundleAnalyzerPlugin({ // generates report.html
6161
analyzerMode: 'static',
62-
generateStatsFile: true,
63-
statsOptions: {
64-
// allows usage with http://chrisbateman.github.io/webpack-visualizer/
65-
chunkModules: true,
66-
},
6762
openAnalyzer: false,
6863
logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout
6964
}),

0 commit comments

Comments
 (0)