From 79357a6458ff4494c3beeaabddc8be2b8093609f Mon Sep 17 00:00:00 2001 From: Ricardo Macario Date: Tue, 27 Feb 2018 14:58:26 -0500 Subject: [PATCH] marks webpack compilation script error with process.exit(1) --- packages/slate-tools/cli/commands/build.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/slate-tools/cli/commands/build.js b/packages/slate-tools/cli/commands/build.js index 52e67e012..05536b4ee 100755 --- a/packages/slate-tools/cli/commands/build.js +++ b/packages/slate-tools/cli/commands/build.js @@ -30,4 +30,6 @@ webpack(webpackConfig, (err, stats) => { chunkModules: false, })}`, ); + + if (stats.compilation.errors.length) process.exit(1); });