ssr
## Install
Last updated 3 months ago by langshu .
Original npm · Tarball · package.json
$ cnpm install ssr 
SYNC missed versions from official npm registry.

ssr-cli

Install

$ npm i ssr -g

Usage

  • start csr and ssr
// example/faas/app
$ ssr start
  • build
// example/faas/app
$ ssr build

build 命令将根据 yaml 配置文件中的路由进行打包。支持多路由配置。

'use strict'

const path = require('path')

const App = require('faas-runtime')('egg', async (ctx, next) => {
  // add your runtime middware here
  ctx.ssrRender = require('../../index')
  app.use(require('koa-static')(path.join(__dirname, './app/render/dist')))
  await next()
})

const app = new App('./app')

app.listen(3000)
$ open http://localhost:3000/xxx

Current Tags

  • 3.4.5                                ...           latest (3 months ago)

38 Versions

  • 3.4.5                                ...           3 months ago
  • 3.4.4                                ...           3 months ago
  • 3.4.3                                ...           3 months ago
  • 3.4.2                                ...           3 months ago
  • 3.4.1                                ...           3 months ago
  • 3.4.0                                ...           3 months ago
  • 3.3.1                                ...           3 months ago
  • 3.3.0                                ...           3 months ago
  • 3.2.0                                ...           3 months ago
  • 3.1.0                                ...           3 months ago
  • 3.0.0                                ...           6 months ago
  • 2.1.2                                ...           7 months ago
  • 2.1.1                                ...           7 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.2                                ...           8 months ago
  • 2.0.1                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 2.0.0-bate.3                                ...           8 months ago
  • 2.0.0-bate.2                                ...           8 months ago
  • 2.0.0-bate.1                                ...           8 months ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           4 years ago
  • 1.0.11                                ...           4 years ago
  • 1.0.10                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |