vue-cli官网说了
vue-cli-service build d 命令参数中,--report 和 --report-json 会根据构建统计生成报告,它会帮助你分析包中包含的模块们的大小。
脚本命令
vue-cli-service build --report
-
打包之后会生成report.html文件
report.html -
浏览器打开该文件,就可以看到打包文件的分析
分析页面
vue-cli官网说了
vue-cli-service build d 命令参数中,--report 和 --report-json 会根据构建统计生成报告,它会帮助你分析包中包含的模块们的大小。
vue-cli-service build --report
打包之后会生成report.html文件
浏览器打开该文件,就可以看到打包文件的分析
本文标题:vue-vli 4.3 打包生成分析文件
本文链接:https://www.haomeiwen.com/subject/qtdtgktx.html
网友评论