Closed nikkwong closed 8 years ago
You can use the cwd
option for this: http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
includereplace: {
development: {
options: {},
files: [
{
src: 'some/dir/*.html',
dest: 'targetdir/',
flatten: true,
expand:true
}
],
}
}
Hi,
Is it possible to flatten the output of the files in the dest folder? My templates are nested relative to the grunt file into something like /src/templates/index.html so by declaring
dest: 'dist';
the output is
dist/src/templates/index.html,
where i'd prefer
dist/index.html
Thanks.