Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle budgets fail with decimal values #12013

Closed
StephenFluin opened this issue Aug 27, 2018 · 1 comment · Fixed by #12026
Closed

bundle budgets fail with decimal values #12013

StephenFluin opened this issue Aug 27, 2018 · 1 comment · Fixed by #12026
Labels
Milestone

Comments

@StephenFluin
Copy link
Contributor

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.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
@clydin clydin removed their assignment Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants