const express = require('express')
const app = express();
var history = require('connect-history-api-fallback');
app.use(history());
app.use(express.static('./dist'))
app.listen(9091,()=>{
console.log('http://127.0.0.1:9091');
})
生活其实很有趣
const express = require('express')
const app = express();
var history = require('connect-history-api-fallback');
app.use(history());
app.use(express.static('./dist'))
app.listen(9091,()=>{
console.log('http://127.0.0.1:9091');
})