Skip to content

Set chokidar option ignoreIntial: true by default#1283

Merged
yocontra merged 1 commit intogulpjs:4.0from
es128:patch-1
Sep 27, 2015
Merged

Set chokidar option ignoreIntial: true by default#1283
yocontra merged 1 commit intogulpjs:4.0from
es128:patch-1

Conversation

@es128
Copy link
Copy Markdown
Contributor

@es128 es128 commented Sep 26, 2015

Chokidar by default emits add events as it initially scans the file tree it is asked to watch. This can be suppressed by setting the ignoreInitial: true option, which is desirable here to avoid kicking off the task for each matched file upon startup.

Users retain the ability to specify ignoreInitial: false if that is the behavior they want.

Resolves #1282

Chokidar by default emits `add` events as it initially scans the file tree it is asked to watch. This can be suppressed by setting the `ignoreInitial: true` option, which is desirable here to avoid kicking off the task for each matched file upon startup.

Users retain the ability to specify `ignoreInitial: false` if that is the behavior they want.
yocontra pushed a commit that referenced this pull request Sep 27, 2015
Set chokidar option ignoreIntial: true by default
@yocontra yocontra merged commit 36dfa95 into gulpjs:4.0 Sep 27, 2015
@es128 es128 deleted the patch-1 branch September 28, 2015 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants