Angular&CI/CD:Error: initial exceeded maximum budget

Angular项目在在走CI/CD流程时,出现以下错误:

Warning: initial exceeded maximum budget. Budget 2.00 MB was not met by 3.01 MB with a total of 5.01 MB.
Error: initial exceeded maximum budget. Budget 5.00 MB was not met by 6.83 kB with a total of 5.01 MB.

大致意思是打包文件过大,超出规定的文件大小

解决方法:修改项目中的angular.json配置文件(内存参数)

 "budgets": [{
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "6mb"
                },
              ]

原来我maximumError设置的5mb,现在设置为6mb就可以了,具体问题视情况而定

上一篇:Leetcode2130. Maximum Twin Sum of a Linked List


下一篇:3GPP TS 23502-h20 中英文对照 | 4.15.6.3a Network Configuration parameters