title: Error: bundle initial-es5 exceeded maximum budget. Budget 6.00 MB was not met by 133.51 kB with a total of 6.13 MB
body: <p>I have an angular application upgraded to 11.</p>
  <p>And I do a <code>&gt; ng build --prod</code></p>
  <p>And I see this information:</p>
  <pre><code>√ Browser application bundle generation complete.
  √ ES5 bundle generation complete.
  
  Initial Chunk Files                      | Names                |      Size
  scripts.3cf268d47c462590e7d9.js          | scripts              |   3.27 MB
  main-es5.9973d9ddec6de2b044ba.js         | main                 |   2.49 MB
  main-es2015.9973d9ddec6de2b044ba.js      | main                 |   2.36 MB
  styles.d540d930321db4c962dc.css          | styles               | 245.64 kB
  polyfills-es5.259ae27e17f48bc03647.js    | polyfills-es5        | 131.80 kB
  polyfills-es2015.732b81c0b5a3e3dbb1bc.js | polyfills            |  36.16 kB
  runtime-es2015.a4dadbc03350107420a4.js   | runtime              |   1.45 kB
  runtime-es5.a4dadbc03350107420a4.js      | runtime              |   1.45 kB
  
                                           | Initial ES5 Total    |   6.13 MB
                                           | Initial ES2015 Total |   5.91 MB
  
  Build at: 2021-02-18T14:49:39.581Z - Hash: 0e159b0e28a5a4f69881 - Time: 144004ms
  
  </code></pre>
  <p>But I also get this error:</p>
  <pre><code>Error: bundle initial-es5 exceeded maximum budget. Budget 6.00 MB was not met by 133.51 kB with a total of 6.13 MB.
  
  </code></pre>
  <p>But I already changed the budget size some time ago:</p>
  <pre><code> &quot;budgets&quot;: [
                  {
                    &quot;type&quot;: &quot;initial&quot;,
                    &quot;maximumWarning&quot;: &quot;4mb&quot;,
                    &quot;maximumError&quot;: &quot;6mb&quot;
                  },
                  {
                    &quot;type&quot;: &quot;anyComponentStyle&quot;,
                    &quot;maximumWarning&quot;: &quot;6kb&quot;,
                    &quot;maximumError&quot;: &quot;10kb&quot;
                  }
                ]
  
  </code></pre>
  <p>Of course, I could again increase the size. But of course, that is not what you want to do.</p>
  <p>And this is my pacakge.json file:</p>
  <pre><code>{
    &quot;name&quot;: &quot;dashboard-frontend&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;sideEffects&quot;: false,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve -o&quot;,
      &quot;build&quot;: &quot;ng build --stats.json --prod=true --deleteOutputPath=false&quot;,
      &quot;test&quot;: &quot;ng test&quot;,
      &quot;lint&quot;: &quot;npm run lint.eslint &amp;&amp; npm run lint.prettier &amp;&amp; npm run lint.types&quot;,
      &quot;lint.eslint&quot;: &quot;eslint . --ext ts&quot;,
      &quot;lint.prettier&quot;: &quot;prettier -c src/**/*.ts&quot;,
      &quot;lint.types&quot;: &quot;tsc --noEmit&quot;,
      &quot;e2e&quot;: &quot;ng e2e&quot;
    },
    &quot;private&quot;: true,
    &quot;browser&quot;: {
      &quot;fs&quot;: false,
      &quot;path&quot;: false,
      &quot;os&quot;: false
    },
    &quot;dependencies&quot;: {
      &quot;@angular-material-components/datetime-picker&quot;: &quot;^5.0.3&quot;,
      &quot;@angular-devkit/build-angular&quot;: &quot;^0.1102.1&quot;,
      &quot;@angular/animations&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/cdk&quot;: &quot;10.2.7&quot;,
      &quot;@angular/common&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/compiler&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/core&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/elements&quot;: &quot;11.2.1&quot;,
      &quot;@angular/forms&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/material&quot;: &quot;10.2.7&quot;,
      &quot;@angular/material-moment-adapter&quot;: &quot;^11.2.0&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/router&quot;: &quot;~11.2.1&quot;,
      &quot;@fortawesome/angular-fontawesome&quot;: &quot;0.7.0&quot;,
      &quot;@fortawesome/fontawesome-svg-core&quot;: &quot;1.2.30&quot;,
      &quot;@fortawesome/free-solid-svg-icons&quot;: &quot;5.14.0&quot;,
      &quot;@mapbox/mapbox-gl-geocoder&quot;: &quot;4.7.0&quot;,
      &quot;@types/jest&quot;: &quot;^26.0.15&quot;,
      &quot;@types/mocha&quot;: &quot;^8.0.4&quot;,
      &quot;angular-auth-oidc-client&quot;: &quot;^11.2.0&quot;,
      &quot;angular-gridster2&quot;: &quot;10.1.6&quot;,
      &quot;angular-plotly.js&quot;: &quot;3.0.0&quot;,
      &quot;bootstrap&quot;: &quot;4.5.2&quot;,
      &quot;bootstrap-icons&quot;: &quot;1.3.0&quot;,
      &quot;idb&quot;: &quot;6.0.0&quot;,
      &quot;jasmine&quot;: &quot;^3.6.3&quot;,
      &quot;jest&quot;: &quot;^26.6.3&quot;,
      &quot;luxon&quot;: &quot;1.25.0&quot;,
      &quot;mapbox-gl&quot;: &quot;^1.12.0&quot;,
      &quot;material-icons&quot;: &quot;^0.3.1&quot;,
      &quot;moment&quot;: &quot;^2.29.1&quot;,
      &quot;ngx-mapbox-gl&quot;: &quot;4.8.1&quot;,
      &quot;plotly.js&quot;: &quot;1.55.2&quot;,
      &quot;rxjs&quot;: &quot;~6.5.4&quot;,
      &quot;ts-jest&quot;: &quot;^26.4.4&quot;,
      &quot;tslib&quot;: &quot;^2.0.0&quot;,
      &quot;zone.js&quot;: &quot;~0.10.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~0.1102.1&quot;,
      &quot;@angular/cli&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~11.2.1&quot;,
      &quot;@angular/language-service&quot;: &quot;~11.2.1&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.6.0&quot;,
      &quot;@types/jasminewd2&quot;: &quot;~2.0.3&quot;,
      &quot;@types/luxon&quot;: &quot;1.25.0&quot;,
      &quot;@types/mapbox-gl&quot;: &quot;1.12.5&quot;,
      &quot;@types/node&quot;: &quot;^12.12.62&quot;,
      &quot;@types/plotly.js&quot;: &quot;^1.50.21&quot;,
      &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^4.4.1&quot;,
      &quot;@typescript-eslint/parser&quot;: &quot;^4.4.1&quot;,
      &quot;eslint&quot;: &quot;^7.11.0&quot;,
      &quot;eslint-config-google&quot;: &quot;^0.14.0&quot;,
      &quot;eslint-config-prettier&quot;: &quot;^6.13.0&quot;,
      &quot;eslint-plugin-prettier&quot;: &quot;^3.1.4&quot;,
      &quot;gzipper&quot;: &quot;^4.4.0&quot;,
      &quot;jasmine-core&quot;: &quot;~3.6.0&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~5.0.0&quot;,
      &quot;karma&quot;: &quot;~6.1.1&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage-istanbul-reporter&quot;: &quot;~3.0.2&quot;,
      &quot;karma-jasmine&quot;: &quot;~4.0.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.5.0&quot;,
      &quot;prettier&quot;: &quot;^2.1.2&quot;,
      &quot;prettier-eslint&quot;: &quot;^11.0.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~8.3.0&quot;,
      &quot;typescript&quot;: &quot;~4.0.5&quot;
    }
  }
  
  
  </code></pre>
  <p>How to decrease the dist folder?</p>
  <p>Thank you</p>