Title: ng new build uses --prod · Issue #10191 · angular/angular-cli · GitHub
Open Graph Title: ng new build uses --prod · Issue #10191 · angular/angular-cli
X Title: ng new build uses --prod · Issue #10191 · angular/angular-cli
Description: Versions Angular CLI: 1.6.4 Node: 8.9.1 OS: win32 x64 Repro steps ng new testprog Observed behavior Default build includes "--prod" { "name": "testprog", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve",...
Open Graph Description: Versions Angular CLI: 1.6.4 Node: 8.9.1 OS: win32 x64 Repro steps ng new testprog Observed behavior Default build includes "--prod" { "name": "testprog", "version": "0.0.0", "license": "MIT", "scri...
X Description: Versions Angular CLI: 1.6.4 Node: 8.9.1 OS: win32 x64 Repro steps ng new testprog Observed behavior Default build includes "--prod" { "name": "testprog", "version...
Opengraph URL: https://github.com/angular/angular-cli/issues/10191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng new build uses --prod","articleBody":"### Versions\r\nAngular CLI: 1.6.4\r\nNode: 8.9.1\r\nOS: win32 x64\r\n\r\n### Repro steps\r\nng new testprog\r\n\r\n\r\n### Observed behavior\r\nDefault build includes \"--prod\"\r\n\r\n{\r\n \"name\": \"testprog\",\r\n \"version\": \"0.0.0\",\r\n \"license\": \"MIT\",\r\n \"scripts\": {\r\n \"ng\": \"ng\",\r\n \"start\": \"ng serve\",\r\n **\"build\": \"ng build --prod\",**\r\n \"test\": \"ng test\",\r\n \"lint\": \"ng lint\",\r\n \"e2e\": \"ng e2e\"\r\n },...\r\n\r\n### Desired behavior\r\nDo not include \"--prod\"\r\n\r\nGenerating the project with \"build\": \"ng build --prod\" causes production environment variables to be used. Such as, a production api. This is not a good thing. I don't recall \"--prod\" being the default in older versions of the CLI?\r\n\r\n### Mention any other details that might be useful (optional)\r\nI was mortified when my app hit the production payments api. No damaged done except to my reputation and my inner child. Both DOA. \r\n","author":{"url":"https://github.com/derobiom","@type":"Person","name":"derobiom"},"datePublished":"2018-04-05T14:17:13Z","url":"https://github.com/angular/angular-cli/issues/10191"}
| 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:23ff5099-b8e0-14da-1a72-ad58253d61fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93AC:23CF06:2D66679:39D56C5:6B01A9D1 |
| html-safe-nonce | 2fa66a4ff59359f851628bb455e05d204006fca35a45aaa26c4b589b12f93b9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0FDOjIzQ0YwNjoyRDY2Njc5OjM5RDU2QzU6NkIwMUE5RDEiLCJ2aXNpdG9yX2lkIjoiMjQ3NDMxODk0NDM1MDA4NzYzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6bbfec280372f27a0cbc83df60fa38332cdd9fb41a9d1bf20b0b83d8e51bbe04 |
| hovercard-subject-tag | issue:311629505 |
| 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/10191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d65b62464ab9c11432227ac78f85a9862bda3f0164116d34dd77e327e077c0e/angular/angular-cli/issues/10191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d65b62464ab9c11432227ac78f85a9862bda3f0164116d34dd77e327e077c0e/angular/angular-cli/issues/10191 |
| og:image:alt | Versions Angular CLI: 1.6.4 Node: 8.9.1 OS: win32 x64 Repro steps ng new testprog Observed behavior Default build includes "--prod" { "name": "testprog", "version": "0.0.0", "license": "MIT", "scri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | derobiom |
| 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