Fail on build error
This commit is contained in:
parent
304bf4fe29
commit
9e6ee4df52
1 changed files with 3 additions and 0 deletions
|
@ -118,4 +118,7 @@ await Promise.all([
|
||||||
]).catch(err => {
|
]).catch(err => {
|
||||||
console.error("Build failed");
|
console.error("Build failed");
|
||||||
console.error(err.message);
|
console.error(err.message);
|
||||||
|
// make ci fail
|
||||||
|
if (!watch)
|
||||||
|
process.exitCode = 1;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue