Grunt rewrite