http-server的使用 欢迎使用http-server安装使用停止 欢迎使用http-server http-server是一个简单的node服务器,可以用它来运行打包后的项目 安装 1.全局安装 npm install --global http-server 2.安装成功后可以在cmd 中查看安装信息 npm view http-server npm info http-server // or npm -v hs 使用 1.通过 npm run build 对项目进行打包 生成dist文件 2.运行 http-server 停止 ctrl -c停止运行