koa-spa-static
用于koa部署单页面资源(仅推荐使用在 文档
,mock
等 dev 服务)
use koa to deploy static single page application source (just recommend with dev server such as document or mock-server)
Requirements
Installation
$ npm install koa-spa-static
Options
matchReg
Regex of matching front-end pagesstaticReg
Regex of matching front-end static. Defaults to "/static"root
koa-static root rootopts
koa-static opts options
Example
const app = app; app console;