title: Vue history mode and express server getting 404 error
body: <p>I'm running a vue SPA in a express server. The problem is when an use history mode and I refresh the page I get a 404 not found exception.
  I tried to use <code>connect-history-api-fallback</code> but is not working.</p>
  
  <p>My express configuration looks like this:</p>
  
  <pre><code>// server.js
  var express = require('express');
  var history = require('connect-history-api-fallback');
  
  
  var path = require('path');
  var serveStatic = require('serve-static');
  app = express();
  app.use(serveStatic(__dirname + "/dist"));
  var port = process.env.PORT || 5000;
  app.use(history())
  app.listen(port);
  </code></pre>