安装
// 全局安装
npm install http-server -g
运行
// 在项目根目录下运行
http-server [path] [options]
// eg: http-server localhost: 8080
设置代理(跨域请求时)
http-server --proxy proxyPath
DOC
http-server
安装
// 全局安装
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
网友评论