Vue - 如何使用npm run build后的dist文件夹

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

npm run build

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

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

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

python -m http.server --directory .

或者使用

npx http-server
posted @ 2019-01-11 22:17  Rocin  阅读(6247)  评论(0编辑  收藏  举报