脚手架vue cli生成项目后,使用
npm run build
生成了一个dist文件夹(应该是distribution的缩写)
只要放在http服务器上就可以运行。
使用一句python命令可以搭建http服务器
python -m http.server --directory .
或者使用
npx http-server
脚手架vue cli生成项目后,使用
npm run build
生成了一个dist文件夹(应该是distribution的缩写)
只要放在http服务器上就可以运行。
使用一句python命令可以搭建http服务器
python -m http.server --directory .
或者使用
npx http-server
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。