I\'m trying to build a simple server to serve a single HTML page where all the logics are handled by Angular. As far as I\'m using the HTML5 history mode I\'m able to naviga
You need to set the root directory for relative filenames.
app.all('/*', function(req, res) { res.sendfile('index.html', { root: __dirname+'/dist' }); });