From: Nolan Lawson Date: Fri, 2 Jun 2017 01:49:56 +0000 (-0700) Subject: Enable stats.json analysis with Webpack Visualizer (#3509) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=edddc7c79138bacf99d351033a75c0c15c480c59;p=mastodon.git Enable stats.json analysis with Webpack Visualizer (#3509) --- diff --git a/config/webpack/production.js b/config/webpack/production.js index 5e74d7b87..c93dd55e3 100644 --- a/config/webpack/production.js +++ b/config/webpack/production.js @@ -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 }),