Add FAQ about enthusiastic patterns. Closes GH-36.

This commit is contained in:
Kyle Robinson Young 2013-01-14 23:41:47 -08:00
parent 7a38126c4b
commit 3ec9cd8d7f
2 changed files with 7 additions and 1 deletions

View File

@ -121,6 +121,9 @@ This is because of your system's max opened file limit. For OSX the default is v
#### Can I use this with Grunt v0.3?
Yes. Although `grunt-contrib-watch` is a replacement watch task for Grunt v0.4, version `grunt-contrib-watch@0.1.x` is compatible with Grunt v0.3. `grunt-contrib-watch >= 0.2.x` is **only* compatible and recommended to use with Grunt v0.4.
#### Why is the watch devouring all my memory?
Likely because of an enthusiastic pattern trying to watch thousands of files. Such as `'**/*.js'` but forgetting to exclude the `node_modules` folder with `'!node_modules/**/*.js'`. Try grouping your files within a subfolder or be more explicit with your file matching pattern.
## Release History
@ -136,4 +139,4 @@ Yes. Although `grunt-contrib-watch` is a replacement watch task for Grunt v0.4,
Task submitted by [Kyle Robinson Young](http://dontkry.com)
*This file was generated on Wed Jan 09 2013 12:29:30.*
*This file was generated on Mon Jan 14 2013 23:40:50.*

View File

@ -40,3 +40,6 @@ This is because of your system's max opened file limit. For OSX the default is v
## Can I use this with Grunt v0.3?
Yes. Although `grunt-contrib-watch` is a replacement watch task for Grunt v0.4, version `grunt-contrib-watch@0.1.x` is compatible with Grunt v0.3. `grunt-contrib-watch >= 0.2.x` is **only* compatible and recommended to use with Grunt v0.4.
## Why is the watch devouring all my memory?
Likely because of an enthusiastic pattern trying to watch thousands of files. Such as `'**/*.js'` but forgetting to exclude the `node_modules` folder with `'!node_modules/**/*.js'`. Try grouping your files within a subfolder or be more explicit with your file matching pattern.