Created
December 27, 2012 21:29
-
-
Save anonymous/4392152 to your computer and use it in GitHub Desktop.
Custom Grunt Connect Middleware to rewrite non static/directory resources to index.html. Useful for debugging AngularJS apps with HTML5 mode enabled. Routes like /projects which have been defined by the $routeProvider can then be navigated directly from the browser by serving always the index.html. Angular will automatically resolve the defined …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function(grunt) { | |