vue-router and Express vue-router and Express express express

vue-router and Express


For those in a similar situation, now working using:

const express = require('express');const history = require('connect-history-api-fallback');const app = express();const staticFileMiddleware = express.static(__dirname);app.use(staticFileMiddleware);app.use(history({  disableDotRule: true,  verbose: true}));app.use(staticFileMiddleware);const port = 5555;app.listen(port, () => {  console.log(`Example app listening on port ${port}!`);});

You can learn more about connect-history-api-fallback