Closed
Description
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
We have a lot of different bundles defined in our project, and each of those bundles has budgets assigned. After updating to angular 18, this has stopped functioning properly.
package.json prerequisite:
"@fortawesome/fontawesome-pro": "^5.15.4",
angular.json bundle definition:
"styles": [
{
"input": "node_modules/@fortawesome/fontawesome-pro/css/all.min.css",
"inject": false,
"bundleName": "generic-fontawesome"
}
]
angular.json budget definition:
"budgets": [
{
"type": "bundle",
"name": "generic-fontawesome",
"baseline": "170.10kB",
"warning": "1kB",
"error": "1kB"
}
]
The file does get created:
dist\app\browser\generic-fontawesome.css
and has contents:
The related styling is also applied on the page where we want it (the contents not only exist but are correct).
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
▲ [WARNING] generic-fontawesome failed to meet minimum budget. Budget 173.16 kB was not met by 173.16 kB with a total of 0 bytes.
X [ERROR] generic-fontawesome failed to meet minimum budget. Budget 173.16 kB was not met by 173.16 kB with a total of 0 bytes.
Please provide the environment you discovered this bug in (run ng version
)
Node: 18.20.3
Package Manager: npm 10.6.0
OS: win32 x64
Angular: 18.0.4
... animations, cdk, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1800.5
@angular-devkit/core 18.0.5
@angular-devkit/schematics 18.0.5
@angular/build 18.0.5
@angular/cli 18.0.5
@schematics/angular 18.0.5
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.7
Anything else?
No response