grunt-includes
Advanced tools
+1
-1
| { | ||
| "name": "grunt-includes", | ||
| "description": "Include other files within a file.", | ||
| "version": "0.4.3", | ||
| "version": "0.4.4", | ||
| "author": "vanetix <matmcfarland@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "Gruntfile.js", |
+6
-2
@@ -121,7 +121,7 @@ # grunt-includes [](https://travis-ci.org/vanetix/grunt-includes) | ||
| }, | ||
| files: { | ||
| files: [{ | ||
| cwd: 'assets/js/', | ||
| src: '**/*.js', | ||
| dest: 'assets/dist/js/', | ||
| }, | ||
| }], | ||
| }, | ||
@@ -137,2 +137,6 @@ }, | ||
| ## Troubleshooting | ||
| * **Grunt is copying the wrong files to the wrong locations.** If you're using `includes` as a [multitask](http://gruntjs.com/creating-tasks#multi-tasks) and are specifying a `files` object with `src`, `dest`, and `cwd`, you must supply it in an array using the [files array format](http://gruntjs.com/configuring-tasks#files-array-format). If you shorthand it by setting `files: {src: ... }`, Grunt will misinterpret it into the [files object format](http://gruntjs.com/configuring-tasks#files-object-format) and mysteriously copy artifacts into (potentially new) `src`, `dest`, and `cwd` directories. This appears to affect only multitask usage. | ||
| ## Example | ||
@@ -139,0 +143,0 @@ *index.html* |
13238
5.35%193
2.12%