spm-server

Debug server for spm.

spm-server

Server for spm, documentation, 中文上手文档.

$ npm install spm-server -g
  1. use in command line
$ spm-server [options]
  1. use api for customize
require('spm-server')(root)
  .use(middleware())
  .spm()
  .combo()
  .directory()
  .listen(8000);
  • -p, --port <port>, server port, default: 8000
  • -b, --base <path>, set seajs's base
  • --proxy, enable anyproxy on 8989
  • --livereload, enable livereload
  • --weinre, enable weinre
  • --cache, enable 304 cache for spm
  • --cdn <cdn>, cdn proxy, defaults: https://115.238.23.196^a.alipayobjects.com