vue-cli3.0搭建项目,打包后在本地打开dist下的ind
2020-08-06 本文已影响0人
高阳刘
官网提供的方法
https://cli.vuejs.org/guide/deployment.html
npm install -g serve
# -s flag means serve it in Single-Page Application mode
# which deals with the routing problem below
serve -s dist