Title: Build with "ng -prod" is extremely slow · Issue #6795 · angular/angular-cli · GitHub
Open Graph Title: Build with "ng -prod" is extremely slow · Issue #6795 · angular/angular-cli
X Title: Build with "ng -prod" is extremely slow · Issue #6795 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [ x] bug report -> please search issues before submitting - [ ] feature request Versions. ng --version _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ __ / | | | | / △ \ | ' \ / _ | | | | |/ _ |...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [ x] bug report -> please search issues before submitting - [ ] feature request Versions. ng --version _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ __ ...
X Description: Bug Report or Feature Request (mark with an x) - [ x] bug report -> please search issues before submitting - [ ] feature request Versions. ng --version _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ ...
Opengraph URL: https://github.com/angular/angular-cli/issues/6795
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build with \"ng -prod\" is extremely slow","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [ x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Versions.\r\nng --version\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n/_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n@angular/cli: 1.1.0\r\nnode: 7.9.0\r\nos: win32 x64 (Win 10 Enterpirise - 16Gig , i7)\r\n@angular/animations: 4.0.0\r\n@angular/common: 4.0.0\r\n@angular/compiler: 4.0.0\r\n@angular/core: 4.0.0\r\n@angular/forms: 4.0.0\r\n@angular/http: 4.0.0\r\n@angular/platform-browser: 4.0.0\r\n@angular/platform-browser-dynamic: 4.0.0\r\n@angular/router: 4.0.0\r\n@angular/cli: 1.1.0\r\n@angular/compiler-cli: 4.0.0\r\n@angular/language-service: 4.0.0\r\n\r\n\r\n\r\n### Repro steps.\r\n$ ng build --prod --aot=false -ec --sourcemap=false\r\nHash: 552d9867ececa788ac3a\r\nTime: **670222ms**\r\nchunk {0} polyfills.d77767cee98c83f90386.bundle.js (polyfills) 294 kB {5} [initial] [rendered]\r\nchunk {1} main.255e1d27fe4d40b56ab2.bundle.js (main) 1.51 MB {4} [initial] [rendered]\r\nchunk {2} scripts.45a4574f31d7b91e5a5e.bundle.js (scripts) 3.88 MB {5} [initial] [rendered]\r\nchunk {3} styles.ac17d766c993c4027892.bundle.css (styles) 228 bytes {5} [initial] [rendered]\r\nchunk {4} vendor.86c029ec4598fb674488.bundle.js (vendor) 8.23 MB [initial] [rendered]\r\nchunk {5} inline.750f0337ff0a9bee9813.bundle.js (inline) 0 bytes [entry] [rendered]\r\n\r\nng build --aot -ec -sm\r\nHash: 24f744145f250126e699\r\nTime: **62809ms**\r\nchunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 294 kB {5} [initial] [rendered]\r\nchunk {1} main.bundle.js, main.bundle.js.map (main) 3.07 MB {4} [initial] [rendered]\r\nchunk {2} scripts.bundle.js, scripts.bundle.js.map (scripts) 3.88 MB {5} [initial] [rendered]\r\nchunk {3} styles.bundle.css, styles.bundle.css.map (styles) 228 bytes {5} [initial] [rendered]\r\nchunk {4} vendor.bundle.js, vendor.bundle.js.map (vendor) 7.37 MB [initial] [rendered]\r\nchunk {5} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]\r\n\r\n### 670222ms vs 62809ms is a huge difference\r\n\r\n### The log given by the failure.\r\nThere is no failure , the build takes a very long time to complete its stuck at \r\n` 92% chunk asset optimization` and then we have to wait for 10-15 mins to get the build completed.\r\nI have disabled aot and sourcemaps, still the speed is very slow.\r\n\r\n### Desired functionality.\r\nbuild should have similar time that to of `ng build -aot`\r\n\r\nAny help and guidance to reduce will be helpful. ","author":{"url":"https://github.com/ankeshdave","@type":"Person","name":"ankeshdave"},"datePublished":"2017-06-24T04:28:11Z","url":"https://github.com/angular/angular-cli/issues/6795"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:37d9dd06-853b-f5ae-8293-b51d0fdfc9d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B20:38C5CF:180586D:1E98B8B:6B0127CF |
| html-safe-nonce | d9865ed3c778a45a824d7083db233d88c1db22c24abc45d308b8a4df51621402 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjIwOjM4QzVDRjoxODA1ODZEOjFFOThCOEI6NkIwMTI3Q0YiLCJ2aXNpdG9yX2lkIjoiMjc3NDg2NjM1NDY5ODc5MDg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5a654ce22f981c22d8e6da6b55518c4abb190d2ef2ff20dba79a7d233f93e69f |
| hovercard-subject-tag | issue:238293894 |
| 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/6795/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f437578ba472b3454c6faa0c30f12432160e8cf2467953d1e5a5e0e13482b6bb/angular/angular-cli/issues/6795 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f437578ba472b3454c6faa0c30f12432160e8cf2467953d1e5a5e0e13482b6bb/angular/angular-cli/issues/6795 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [ x] bug report -> please search issues before submitting - [ ] feature request Versions. ng --version _ _ ____ _ ___ / \ _ __ __ _ _ | | __ _ _ __ ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ankeshdave |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width