With vue cli 2
npm run build --report
For vue cli 3, edit package.json
.
{
...
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"report": "vue-cli-service build --report"
},
...
}
npm run report
Check the output report.html
.
References: