From 0c1518fe25a807d366cef318b1a3f561a0838088 Mon Sep 17 00:00:00 2001 From: ZauberNerd Date: Tue, 27 Mar 2018 12:27:21 +0200 Subject: [PATCH] fix(build): do not break build on webpack warnings Breaking the webpack build on webpack warnings seems a little too restrictive. For example the performance hints are logged as warnings and therefore break the build. After this change the build will only exit with an error code of 1, if the build contains errors, but not if the build only contains warnings. --- packages/build/commands/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/build/commands/build.js b/packages/build/commands/build.js index 7bd2ef04c..86037d8c8 100755 --- a/packages/build/commands/build.js +++ b/packages/build/commands/build.js @@ -51,7 +51,7 @@ module.exports = function defineBuildCommand(args) { ); } - if (error || stats.hasErrors() || stats.hasWarnings()) { + if (error || stats.hasErrors()) { process.exit(1); } });