alanshaw / grunt-include-replace

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

How to replace a file itself ? #65

Closed NextSeason closed 8 years ago

NextSeason commented 8 years ago

I wanna to execute includereplace to a dir, replace all files in the directory. How to set options ?

alanshaw commented 8 years ago

If you want to replace all the files in the directory you'll probably want to use the grunt-contrib-clean task to remove all the files prior to running grunt-include-replace. By default grunt-include-replace will overwrite files in your output directory.

Hope that helps.