I use https://github.com/viart/grunt-connect-rewrite in [loma](https://github.com/cvan/loma/blob/master/Gruntfile.js)