Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
marks webpack compilation script error with process.exit(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickitan committed Feb 28, 2018
1 parent 671ee68 commit 79357a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/slate-tools/cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ webpack(webpackConfig, (err, stats) => {
chunkModules: false,
})}`,
);

if (stats.compilation.errors.length) process.exit(1);
});

0 comments on commit 79357a6

Please sign in to comment.