Last active
August 29, 2015 14:06
-
-
Save noherczeg/99e56111e8c487ccb882 to your computer and use it in GitHub Desktop.
grunt angular html5mode config
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
// 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