Skip to content

Instantly share code, notes, and snippets.

@noherczeg
Last active August 29, 2015 14:06
Show Gist options
  • Save noherczeg/99e56111e8c487ccb882 to your computer and use it in GitHub Desktop.
Save noherczeg/99e56111e8c487ccb882 to your computer and use it in GitHub Desktop.
grunt angular html5mode config
// 0. Step install modrewrite:
$ npm install connect-modrewrite
// 1. Step add modrewrite Gruntfile.js:
var modRewrite = require('connect-modrewrite');
// 2. Step prepend as param to middleware return:
module.exports > grunt.initConfig > connect > livereload > options > middleware > return:
modRewrite(['!\\.html|\\.js|\\.svg|\\.css|\\.png$ /index.html [L]']),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment