0.1.8 • Published 1 year ago
web-serve-static v0.1.8
web 静态服务命令
全局安装依赖
npx web-serve-static全局安装依赖
npm install web-serve-static -g1. 直接运行
web-serve-static1. 开发模式
web-serve-static --dev
web-serve-static -d2. 修改静态目录
web-serve-static ./static3. 监听文件添加、删除,自动重启
web-serve-static ./static -w
web-serve-static ./static --watch4. 修改端口号
web-serve-static./static -p 8972
web-serve-static./static --port 89725. 查看其他配置
web-serve-static -h d Content-Type=json,test=2
web-serve-static --headers Content-Type=json,test=25. 查看其他配置
web-serve-static --help