ssr-cli
Install
$ npm i tudou -g
Usage
- start csr and ssr
$ ssr start
- build
$ ssr build
build 命令将根据 yaml 配置文件中的路由进行打包。支持多路由配置。
'use strict' const path = const App = 'egg' async { // add your runtime middware here ctxssrRender = app await } const app = './app' app
$ open http://localhost:3000/xxx