1 安装live-server npm install -g live-server 2 启动服务 进入到打包后的dist文件目录,执行live-server命名。 访问http://127.0.0.1:8080/即可以看到页面。