grunt-rewrite (npm): A Grunt plugin to edit & replace file contents.
Keywords: gruntplugin