WishMeLz

生活其实很有趣

Nodejs托管vue打包文件模版

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');
})