1 npx serve
2 brew install mkcert
3 新建目录,存放证书,在新目录执行,mkcert 192.168.31.66 (本机ip)
4 pwd 查看当前目录
5 在项目执行 npx serve --ssl-cert /Users/da/Desktop/dyl/doc/ssl/192.168.31.66.pem --ssl-key /Users/da/Desktop/dyl/doc/ssl/192.168.31.66-key.pem -p 8081 ./dist
标签:Users,pem,192.168,31.66,ssl,mac,https,Desktop,打包 From: https://www.cnblogs.com/eternityyl/p/17783278.html