Closed DanKaplanSES closed 11 years ago
You want to use the flatten
option. It's a grunt option for configuring your files list: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
Your task should look like this:
includereplace: {
taskname: {
src: "src/dir/dir2/myhtml.html",
dest: "dist",
expand: true,
flatten: true
}
}
For example, if my file system looks like this:
If my configuration says this:
It ends up putting
myhtml.html
in a directory like this:I want it to put it in a directory like this:
I can't figure out any way to accomplish this.