]> cat aescling's git repositories - mastodon.git/commitdiff
Fix Webpack Bundle Analyzer output for Webpacker (#3374)
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Sun, 28 May 2017 14:26:16 +0000 (23:26 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 28 May 2017 14:26:16 +0000 (16:26 +0200)
Webpacker failed to parse output of Webpack when a module requires
non-existent module or has similar errors. This commit fixes the bug.

config/webpack/production.js

index 5f6977936adb4cf9eae3e7b3b52194d9cfd4e0b4..5e74d7b87bfd759ab510c766bf8e25bcfee278a7 100644 (file)
@@ -34,6 +34,7 @@ module.exports = merge(sharedConfig, {
       analyzerMode: 'static',
       generateStatsFile: true,
       openAnalyzer: false,
+      logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout
     }),
   ],
 });