工具
yarn global add git-open
帮助你快速打开对应的远程仓库地址
打开运行git open
操作
ipconfig (查看ip配置)
npm info typescript version (查看ts最新版)
本地调试方法
1. 第一种方法
http-server . -c-1 (提供本地服务器端口)
hs . -c-1 (缩写)
http-server . -c-1 -p+端口号 (更换端口)
192.168.31.107 (手机端调试)
127.0.0.1 (客户端调试)
2.第二种方法
parcel src/index.html (提供本地服务器端口)
关于build部署
rm -rf dist 如果又dist目录先删除在build
parcel build index.html
报错的话使用下面这个命令
parcel build index.html --no-minify 不要压缩文件