Title: Default to production builds · Issue #14471 · angular/angular-cli · GitHub
Open Graph Title: Default to production builds · Issue #14471 · angular/angular-cli
X Title: Default to production builds · Issue #14471 · angular/angular-cli
Description: 🚀 Feature request I know this is tough due to it being a breaking change with the ecosystem, but I think ng build should do a production build by default. Command (mark with an x) - [x] build Description Most of the time, developers shou...
Open Graph Description: 🚀 Feature request I know this is tough due to it being a breaking change with the ecosystem, but I think ng build should do a production build by default. Command (mark with an x) - [x] build Descr...
X Description: 🚀 Feature request I know this is tough due to it being a breaking change with the ecosystem, but I think ng build should do a production build by default. Command (mark with an x) - [x] build Descr...
Opengraph URL: https://github.com/angular/angular-cli/issues/14471
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Default to production builds","articleBody":"# 🚀 Feature request\r\nI know this is tough due to it being a breaking change with the ecosystem, but I think `ng build` should do a production build by default.\r\n\r\n### Command (mark with an `x`)\r\n```\r\n- [x] build\r\n```\r\n\r\n### Description\r\nMost of the time, developers should be building for production, and serving for development. It would save a lot of time overall if `ng build` defaulted to production mode.\r\n\r\n\r\n### Describe the solution you'd like\r\nDuring the update process to 9 (or some other version), prompt the user if they want to keep the current behavior or migrate to the new behavior, and then default all new projects with `ng new` to production by default.\r\n\r\n### Describe alternatives you've considered\r\nNone","author":{"url":"https://github.com/StephenFluin","@type":"Person","name":"StephenFluin"},"datePublished":"2019-05-19T19:42:36Z","url":"https://github.com/angular/angular-cli/issues/14471"}
| 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:459e6cd2-f26b-d748-e044-b5b6cf5a9bfa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99EC:2E7EBB:2BE4D01:3788EB9:6B01A818 |
| html-safe-nonce | fa00f1b52d3465fa1361f9c49666652cffd006c0f91abd69afa07b6c66ce3d70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUVDOjJFN0VCQjoyQkU0RDAxOjM3ODhFQjk6NkIwMUE4MTgiLCJ2aXNpdG9yX2lkIjoiNTIzOTA0NjI2MjQ0NzI1MzUyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 076c85226453d551c0601207a5ad7ae96b40cddf2aaf06dc45d33ddae0161bd6 |
| hovercard-subject-tag | issue:445856412 |
| 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/14471/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7651cd914737e83fb0e2da6d1e13484c8c4ae75dd3ff7ef2f8ff245ad6434f04/angular/angular-cli/issues/14471 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7651cd914737e83fb0e2da6d1e13484c8c4ae75dd3ff7ef2f8ff245ad6434f04/angular/angular-cli/issues/14471 |
| og:image:alt | 🚀 Feature request I know this is tough due to it being a breaking change with the ecosystem, but I think ng build should do a production build by default. Command (mark with an x) - [x] build Descr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StephenFluin |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width