Vue

脚手架vue cli生成项目后,使用

npm run build

生成了一个dist文件夹(应该是distribution的缩写)

只要放在http服务器上就可以运行。

使用一句python命令可以搭建http服务器

python -m http.server --directory .

或者使用

npx http-server
原文地址:https://www.cnblogs.com/allen2333/p/10257640.html