ericclemmons / grunt-express-server

Grunt task for running an Express Server that works great with LiveReload + Watch/Regarde

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to configure modRewrite or middleware/connect?

bertramn opened this issue · comments

I am trying to configure URL rewriting with grunt-express-server in a yeoman generated angular-fullstack site. Unfortunately I tried any conceivable way of configuring connect, livereload and the likes but for some reason I am unable to add HTML rewrite capabilities to the grunt serve task. The end result is that my angularjs app running in html5mode results in a 404 every time the page is live reloaded. Do you happen to have a working example that would show how to configure connect or middleware in a lifereload task?

Yo generator that includes grunt-express-server is located here