vue.jsvue-clivue-cli-3

How to stop vue cli building the "report.html"?


Vue CLI v3 always creating "dist/report.html" when building for production. It's a webpack bundle analyzer report.

I can't find a way to stop building that file.

How to avoid creating "report.html" when building Vue CLI 3 app for production?

Here is my package.json scripts:

"scripts": {
    "dev": "npm run serve",
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "test:e2e": "vue-cli-service test:e2e",
    "test:unit": "vue-cli-service test:unit"
  },

Solution

  • So far the only way I found to disable it via vue.config.js:

    pluginOptions: {
        webpackBundleAnalyzer: {
            analyzerMode: "disabled"
        }
    },
    

    Would be good to know why this thing is always on in Vue CLI 3.