基于vue3版本搭建的SSR项目
webpack5 + vue3 + vue-router4 + vuex4
- 客户端代码
- vuex
- router
- 配置 webpack
- loader vue-loader css-loader
- plugin html-webpack-plugin entry output devServer webpack serve
- 搭建服务器
- koa
- router
- static
- ssr 路由处理
- 请求处理
- 缓存
- 流的方式进行优化
node commonjs webpack-node-externals