Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit a410eb7

Browse files
committed
Prevent exiting on errors when using --watch option
Closes #68
1 parent e11d847 commit a410eb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/cssnext

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ function transform() {
9696
console.error("If this error looks like a bug, please report it here:")
9797
console.error(colors.grey("❯ ") + pkg.bugs.url.cyan)
9898
console.error()
99-
exit(2)
99+
if (!program.watch) {
100+
exit(2)
101+
}
100102
}
101103
})
102104
}

0 commit comments

Comments
 (0)