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