1 vscode 安装 live server 插件
2 npm 打包文件
执行打包命令
打包成功后,在项目 dist 文件夹下会生成打包文件
3 使用 vscode 打开 dist 文件夹
使用 live server 打开 index.html
运行如下