]> cat aescling's git repositories - mastodon.git/commitdiff
perf: remove stats.json generation in webpack (#10290)
authorNolan Lawson <nolan@nolanlawson.com>
Sat, 16 Mar 2019 10:23:54 +0000 (03:23 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 16 Mar 2019 10:23:54 +0000 (11:23 +0100)
* perf: remove stats.json generation in webpack

* fix code comment

config/webpack/production.js

index 6f27aa2c700272889d6e1c0a13fee2c071387beb..c829ff6f1943c51bab9bc567261a42d761923ff8 100644 (file)
@@ -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
     }),