Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
Command (mark with an x
)
- [x] build
Versions
Angular CLI: 6.2.0-rc.0
Node: 9.2.0
OS: linux x64
Angular: 6.1.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.8.0-rc.0
@angular-devkit/build-angular 0.8.0-rc.0
@angular-devkit/build-optimizer 0.8.0-rc.0
@angular-devkit/build-webpack 0.8.0-rc.0
@angular-devkit/core 0.8.0-rc.0
@angular-devkit/schematics 0.8.0-rc.0
@angular/cli 6.2.0-rc.0
@ngtools/webpack 6.2.0-rc.0
@schematics/angular 0.8.0-rc.0
@schematics/update 0.8.0-rc.0
rxjs 6.2.2
typescript 2.7.2
webpack 4.17.1
Repro steps
ng new my-app
// add budget:
budgets": [{
"type":"initial",
"maximumError": "0.5mb",
"maximumWarning": "0.2mb"
}]
ng bulid --prod
The log given by the failure
$ ng build --prod
Date: 2018-08-27T15:46:13.628Z
Hash: 9ec635e1a8fc425b26c3
Time: 9406ms
chunk {0} runtime.06daa30a2963fa413676.js (runtime) 1.44 kB [entry] [rendered]
chunk {1} main.04899fccb3a420777fc6.js (main) 169 kB [initial] [rendered]
chunk {2} polyfills.f6ae3e8b63939c618130.js (polyfills) 59.6 kB [initial] [rendered]
chunk {3} styles.3bb2a9d4949b7dc120a9.css (styles) 0 bytes [initial] [rendered]
WARNING in budgets, maximum exceeded for initial. Budget 200 undefined was exceeded by 230 kB.
ERROR in budgets, maximum exceeded for initial. Budget 500 undefined was exceeded by 230 kB.
Desired functionality
Budgets should apply successfully and not be of undefined size.