使用nginx代理服务器查看本地打包好的VueCode

1.打包Vue项目→dist

npm run build

2.配置打包好的文件→dist/config/index.js

3.解压nginx文件夹到目录下,修改nginx.conf文件

设置对应的配置信息

 4.启动nginx.exe

5.如修改配置文件重新加载nginx

原文地址:https://www.cnblogs.com/suola/p/13947239.html