Vue Cli 3 Analyze Webpack Bundle

August 20, 2018
vue-cli-service build –report

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:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.