Skip to content

Commit

Permalink
Add reference to ignore options for addWatchTarget
Browse files Browse the repository at this point in the history
A change proposed to solve 11ty#464
See also 11ty/eleventy#893
  • Loading branch information
therealpecus committed Mar 31, 2020
1 parent f273587 commit 96a2895
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ module.exports = function(eleventyConfig) {
};
```

Eleventy will not add a watch for files or folders that are in `.gitignore`, unless `setUseGitIgnore` is turned off. See the chapter on [ignore files](/docs/ignores/#opt-out-of-using-.gitignore).

### Override Browsersync Server Options {% addedin "0.7.0" %}

Useful if you want to change or override the default Browsersync configuration. Find the Eleventy defaults in [`EleventyServe.js`](https://github.com/11ty/eleventy/blob/master/src/EleventyServe.js). Take special note that Eleventy does not use Browsersync’s watch options and trigger reloads manually after our own internal watch methods are complete. See full options list on the [Browsersync documentation](https://browsersync.io/docs/options).
Expand Down

0 comments on commit 96a2895

Please sign in to comment.