Skip to content

Commit

Permalink
Fix: Set chokidar option ignoreIntial: true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
es128 authored and phated committed Dec 31, 2017
1 parent 32abfe5 commit 355fc4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ Gulp.prototype.watch = function(glob, opt, task) {

if (typeof opt === 'function') {
task = opt;
opt = null;
opt = {};
}

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

if (opt.ignoreInitial == null) {
opt.ignoreInitial = true;
}

var watcher = chokidar.watch(glob, opt);
if (fn) {
watcher
Expand Down

0 comments on commit 355fc4e

Please sign in to comment.