diff --git a/docs/watch-options.md b/docs/watch-options.md index 08cab85..18ec851 100644 --- a/docs/watch-options.md +++ b/docs/watch-options.md @@ -96,6 +96,26 @@ watch: { }, ``` +## options.reload +Type: `Boolean` +Default: `false` + +By default, if `Gruntfile.js` is being watched, then changes to it will trigger the watch task to restart, and reload the `Gruntfile.js` changes. +When `reload` is set to `true`, changes to *any* of the watched files will trigger the watch task to restart. +This is especially useful if your `Gruntfile.js` is dependent on other files. + +```js +watch: { + configFiles: { + files: [ 'Gruntfile.js', 'config/*.js' ], + options: { + reload: true + } + } +} +``` + + ## options.forever Type: `Boolean` Default: true