Skip to content
Browse files

Add docs for needing nonull to warn on missing files. Ref GH-15.

  • Loading branch information...
1 parent 2da5f3d commit a7a9774556446234f43afe687be1707d9d5a564b @shama shama committed
Showing with 35 additions and 1 deletion.
  1. +18 −1 README.md
  2. +17 −0 docs/concat-examples.md
View
19 README.md
@@ -215,6 +215,23 @@ grunt.initConfig({
});
```
+#### Invalid or Missing Files Warning
+If you would like the `concat` task to warn if a given file is missing or invalid be sure to set `nonull` to `true`:
+
+```js
+grunt.initConfig({
+ concat: {
+ missing: {
+ src: ['src/invalid_or_missing_file'],
+ dest: 'compiled.js',
+ nonull: true,
+ },
+ },
+});
+```
+
+See [configuring files for a task](http://gruntjs.com/configuring-tasks#files) for how to configure file globbing in Grunt.
+
## Release History
@@ -230,4 +247,4 @@ grunt.initConfig({
Task submitted by ["Cowboy" Ben Alman](http://benalman.com/)
-*This file was generated on Mon Apr 08 2013 09:20:19.*
+*This file was generated on Mon Apr 08 2013 10:12:23.*
View
17 docs/concat-examples.md
@@ -134,3 +134,20 @@ grunt.initConfig({
}
});
```
+
+## Invalid or Missing Files Warning
+If you would like the `concat` task to warn if a given file is missing or invalid be sure to set `nonull` to `true`:
+
+```js
+grunt.initConfig({
+ concat: {
+ missing: {
+ src: ['src/invalid_or_missing_file'],
+ dest: 'compiled.js',
+ nonull: true,
+ },
+ },
+});
+```
+
+See [configuring files for a task](http://gruntjs.com/configuring-tasks#files) for how to configure file globbing in Grunt.

0 comments on commit a7a9774

Please sign in to comment.
Something went wrong with that request. Please try again.