Added options.reload documentation

This commit is contained in:
ScottRippey 2014-01-31 11:22:30 -08:00 committed by Kyle Robinson Young
parent f30e08a472
commit ba46cb7819

View File

@ -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 ## options.forever
Type: `Boolean` Type: `Boolean`
Default: true Default: true