Skip to content

Commit

Permalink
Breaking: Only support tasks that are functions in gulp.watch
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Dec 31, 2017
1 parent c4b6922 commit 1d70cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gulp.prototype.watch = function(glob, opt, task) {
}

var fn;
if (task) {
if (typeof task === 'function') {
fn = this.parallel(task);
}

Expand Down

0 comments on commit 1d70cfb

Please sign in to comment.