Skip to content

Commit 1d70cfb

Browse files
committed
Breaking: Only support tasks that are functions in gulp.watch
1 parent c4b6922 commit 1d70cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gulp.prototype.watch = function(glob, opt, task) {
1818
}
1919

2020
var fn;
21-
if (task) {
21+
if (typeof task === 'function') {
2222
fn = this.parallel(task);
2323
}
2424

0 commit comments

Comments
 (0)