Title: Cannot set a budget on lazy loaded modules with ng cli 6.0.0 · Issue #11019 · angular/angular-cli · GitHub
Open Graph Title: Cannot set a budget on lazy loaded modules with ng cli 6.0.0 · Issue #11019 · angular/angular-cli
X Title: Cannot set a budget on lazy loaded modules with ng cli 6.0.0 · Issue #11019 · angular/angular-cli
Description: Defining budget for a lazy loaded module doesn't work with ng cli 6.0.0 Versions Angular CLI: 6.0.0 Node: 9.5.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, pla...
Open Graph Description: Defining budget for a lazy loaded module doesn't work with ng cli 6.0.0 Versions Angular CLI: 6.0.0 Node: 9.5.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, cor...
X Description: Defining budget for a lazy loaded module doesn't work with ng cli 6.0.0 Versions Angular CLI: 6.0.0 Node: 9.5.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli,...
Opengraph URL: https://github.com/angular/angular-cli/issues/11019
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot set a budget on lazy loaded modules with ng cli 6.0.0","articleBody":"Defining budget for a lazy loaded module doesn't work with ng cli 6.0.0\r\n\r\n### Versions\r\n```\r\nAngular CLI: 6.0.0\r\nNode: 9.5.0\r\nOS: win32 x64\r\nAngular: 6.0.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router, service-worker\r\n\r\nPackage Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect 0.6.0\r\n@angular-devkit/build-angular 0.6.0\r\n@angular-devkit/build-ng-packagr 0.6.0\r\n@angular-devkit/build-optimizer 0.6.0\r\n@angular-devkit/core 0.6.0\r\n@angular-devkit/schematics 0.6.0\r\n@angular/pwa 0.6.0\r\n@ngtools/json-schema 1.1.0\r\n@ngtools/webpack 6.0.0\r\n@schematics/angular 0.6.0\r\n@schematics/package-update \u003cerror\u003e\r\n@schematics/update 0.6.0\r\nng-packagr 3.0.0-rc.2\r\nrxjs 6.1.0\r\ntypescript 2.7.2\r\nwebpack 4.6.0\r\n```\r\n\r\n### Repro steps\r\n* Defines an application with lazyloaded modules\r\n* Declare in angular.json file a budget for one of the lazy loaded module (I tried several names, based on a lazy loaded module named _st-account_\r\n```json\r\n\"budgets\": [\r\n {\"type\": \"bundle\", \"name\": \"st-account\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"1.7d269d24f67b262c9dc9.js\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"StAccount\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"StAccount#Module\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"StAccountModule\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"st-account-src-lib-st-account.module#StAccountModule\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"st-account/src/lib/st-account.module#StAccountModule\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"st-account/src/lib/st-account.module\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"st-account-src-lib-st-account.module\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"st-account-src-lib-st-account-module\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"st-account-src-lib-st-account-module-ngfactory\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" },\r\n {\"type\": \"bundle\", \"name\": \"1\", \"baseline\": \"1kb\", \"maximumWarning\": \"1kb\", \"maximumError\": \"2kb\" }\r\n]\r\n```\r\n* Run `ng build --prod`\r\n\r\n### Observed behavior\r\nNo error or warning is shown.\r\n\r\n### Desired behavior\r\nAn error or warning should be shown based on budget \r\n\r\n### Mention any other details that might be useful (optional)\r\nIf I run `ng build --prod --named-chunks`, a warning/error is shown based on the `st-account-src-lib-st-account-module-ngfactory` budget rule.\r\n","author":{"url":"https://github.com/sebastieno","@type":"Person","name":"sebastieno"},"datePublished":"2018-05-25T16:24:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/11019/angular-cli/issues/11019"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ff9a3b5-c107-7828-8653-20c813155123 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B206:D6FFB:2C121E9:401E54D:6A60E6F1 |
| html-safe-nonce | f4eee29b10faeb19afe83a5d98027e4362764fbce43ac5dbd18f468e69ced8d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjA2OkQ2RkZCOjJDMTIxRTk6NDAxRTU0RDo2QTYwRTZGMSIsInZpc2l0b3JfaWQiOiIxNzM5NjA5MDY1NDUzMDUzNjgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 686071d2bb2fe9e9bd932f10e1381c51035dbb41b4d3aea63124ba35625d6253 |
| hovercard-subject-tag | issue:326588253 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/11019/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de47d4fcbd757b4ad5f4a8382788260409aea01ecb7d8dc458b7626ee3ccd29a/angular/angular-cli/issues/11019 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de47d4fcbd757b4ad5f4a8382788260409aea01ecb7d8dc458b7626ee3ccd29a/angular/angular-cli/issues/11019 |
| og:image:alt | Defining budget for a lazy loaded module doesn't work with ng cli 6.0.0 Versions Angular CLI: 6.0.0 Node: 9.5.0 OS: win32 x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, cor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sebastieno |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1957f194e271fe30a03dc862496c17190cace7b76c3327faf05645d99ab7da7b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ce4ea0e3ce641f8f789b539253752038d78f1cfe |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width