2019年10月31日 星期四

[morse]Angular compiler: ERROR in budgets, maximum exceeded for initial. Budget 5 MB was exceeded by 2.9 kB.


ng build --prod --aot



ERROR in budgets, maximum exceeded for initial. Budget 5 MB was exceeded by 2.9 kB.



Open angular.json file and find budgets keyword.
It should look like:
"budgets": [
   {
      "type": "initial",
      "maximumWarning": "2mb",
      "maximumError": "5mb"
   }
]
As you’ve probably guessed you can increase the maximumWarning value to prevent this warning, i.e.:
"budgets": [
   {
      "type": "initial",
      "maximumWarning": "4mb", <===
      "maximumError": "5mb"
   }
]




沒有留言:

張貼留言