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); });