My Angular/Node/Express app serves index.html instead of static assets in production mode - why?
问题 I have an Angular/Node/Express webapp built on generator-angular-fullstack . In development mode, the app works just fine. But in production mode, it serves index.html whenever static assets (images, CSS) are requested, and I can't figure out why - I guess something is wrong with my ExpressJS routing. lib/express.js: set path for static assets // Mode: Production app.configure('production', function(){ app.use(express.favicon(path.join(config.root, 'public', 'favicon.ico'))); app.use(express