grunt-text-replace
grunt-text-replace copied to clipboard
Add support for an expand option?
It be very nice to maintain the directory structure from src wildcard matches.
For example let's say I have:
replace: {
html: {
src: ['src/**/*.html'],
dest: 'dist/'
// the rest
}
}
In this case the dist gets a flattened version of the src files, losing directories and possibly overwriting files, for example a directory with index.html would overwrite the root index.html. It'd be nice to have an expand option that would build the directories as needed.
I agree this would be nice. A work around would be to copy the tree to your new location and then run the replace on the files in place.
I actually have a detached fork where I implemented the feature: https://github.com/micahblu/grunt-replace-text
okay, no pull request?
I did, but he didn't reply in time and I needed an updated git repo for dev deployments at work
I'll do another pull request, I believe he did eventually reply.
That would be appreciated. Thank you!
On Tue, Jan 6, 2015 at 11:08 PM, Micah Blu [email protected] wrote:
I'll do another pull request, I believe he did eventually reply.
— Reply to this email directly or view it on GitHub https://github.com/yoniholmes/grunt-text-replace/issues/25#issuecomment-68986370 .
I've submitted a pull request that should do the trick