Combining AngularJS, HTML5 locations and superstatic
问题 I've been using the nodejs http-server to serve up my Angular app, but it doesn't work well with HTML5 locations, because using them requires the server to redirect, and http-server doesn't do that. So I saw a recommendation to try superstatic, and installed it. Then I set up the following superstatic.json file: { "routes": { "Admin/**":"/index.html", "Give/**":"/index.html", "Pending/**":"/index.html", "Store/**":"/index.html" } } I launched it with superstatic --config superstatic.json