参考链接
https://www.ucloud.cn/yun/104641.html
根据这个教程 做了部分优化 也更详细
首先 用vue-clie搭建脚手架 这样就不会有版本的问题
github https://github.com/1807826635/vue-ssr-express.git
Vue服务器渲染器 vue-server-renderer
https://www.npmjs.com/package/vue-server-renderer
https://ssr.vuejs.org/
// Step 1: Create a Vue instance
const Vue = require('vue')
const app = new Vue({
template: `<div>Hello World</div>