Vue打包好的dist如何在本地运行

Vue打包好的dist如何在本地运行 

方法1:

npm i -g http-server

进入dist文件夹,运行 http-server

3.开启服务

命令行中进入目标文件夹(也就是需要启动服务的文件夹),输入如下命令:

http-server

  • 本地服务器就启动起来了,默认端口为8080

https://www.cnblogs.com/failed/p/13529977.html

 

猜你喜欢

转载自blog.csdn.net/qq_34068440/article/details/134097692