alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

custom output file path #58

Open gaboolic opened 9 years ago

gaboolic commented 9 years ago

change if (isDirectory(dest) && !config.orig.cwd) { dest = path.join(dest, src); } to if (isDirectory(dest) && !config.orig.cwd) { dest = path.join(dest, path.basename(src)); }

and the config can be: includereplace: { html: { options: { }, src: 'src/.html', dest: 'build/' }, js: { options: { }, src: 'src/js/.js', dest: 'build/js/' } }