美文网首页
http-server:命令行http服务器

http-server:命令行http服务器

作者: _undefined | 来源:发表于2019-05-06 09:28 被阅读0次

安装

// 全局安装
npm install http-server -g

运行

// 在项目根目录下运行
http-server [path] [options] 
// eg: http-server localhost: 8080

设置代理(跨域请求时)

http-server --proxy proxyPath

DOC
http-server

相关文章

网友评论

      本文标题:http-server:命令行http服务器

      本文链接:https://www.haomeiwen.com/subject/tvvloqtx.html