1.0.1 • Published 2 years ago

be-server v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

将你的本地文件映射为静态资源

安装

npm install -g be-server

启动

be-server path [port]

path:必须

  • 相对路径
  • 需要哪个文件夹的内容添加为静态资源,就在那一路径下使用命令
  • 例如./
  • 光输入be-server不会启动服务

port:可选

  • 默认1234

案例

be-server ./public 3000

表示将当前目录下public下的文件,映射为静态资源