Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit be49f81

Browse files
committed
Return error exit code when errors detected during build
1 parent d2cc352 commit be49f81

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gulpfile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ if (!ctx.parentPid() && ctx.currentTask === 'watch') {
6868
ctx.restartChild();
6969
});
7070
}
71+
72+
process.on('exit', function() {
73+
if ( ctx.hadErrors ) {
74+
process.exit(1);
75+
}
76+
});

0 commit comments

Comments
 (0)