前端如何在本地访问打包好的项目

449 阅读1分钟

全局安装 serve

npm install -g serve

然后进入打包好的文件夹再执行 serve 命令即可

cd .\dist\
serve

image.png