1.找到项目根目录的package.json文件: 如图: 2.打开cmd 执行: npm run build 3.生成dist文件夹。 4.把dist文件放到服务器,访问index.html。 完成。 相关文章: