Angular budget for build

Discussão em 'Angular' iniciado por Peanuts-83, Abril 20, 2025.

  1. Peanuts-83

    Peanuts-83 Guest

    My angular.json file gets architect.build.options.budgets configuration:

    [
    {
    "type": "initial",
    "maximumWarning": "500kb",
    "maximumError": "1mb"
    },
    {
    "type": "anyComponentStyle",
    "maximumWarning": "20kb",
    "maximumError": "80kb"
    }
    ]


    But I still get warnings about budget for less files:


    map.component.less exceeded maximum budget. Budget 2.00 kB was not met by 71.33 kB with a total of 73.33 kB.
    ​

    2kb default warning setting seems to be still active. What do I miss?

    Continue reading...

Compartilhe esta Página