With vue cli 2
npm run build --reportFor 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 reportCheck the output report.html.
References: