Skip to content

Commit 663c4bc

Browse files
cexbrayatalan-agius4
authored andcommitted
fix(@schematics/angular): remove references to the prod flag
As the `--prod` is now deprecated, and `ng build` uses by default the `production` configuration, then we should remove the references to `ng build --prod` in the generated project.
1 parent 95aa2b8 commit 663c4bc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

integration/angular_cli/src/app/app.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ <h2>Next Steps</h2>
419419
<pre *ngSwitchCase="'pwa'">ng add @angular/pwa</pre>
420420
<pre *ngSwitchCase="'dependency'">ng add _____</pre>
421421
<pre *ngSwitchCase="'test'">ng test</pre>
422-
<pre *ngSwitchCase="'build'">ng build --prod</pre>
422+
<pre *ngSwitchCase="'build'">ng build</pre>
423423
</div>
424424

425425
<!-- Links -->

integration/angular_cli/src/environments/environment.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file can be replaced during build by using the `fileReplacements` array.
2-
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
2+
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
33
// The list of file replacements can be found in `angular.json`.
44

55
export const environment = {

packages/schematics/angular/application/files/src/environments/environment.ts.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file can be replaced during build by using the `fileReplacements` array.
2-
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
2+
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
33
// The list of file replacements can be found in `angular.json`.
44

55
export const environment = {

packages/schematics/angular/application/other-files/app.component.html.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
<pre *ngSwitchCase="'pwa'">ng add @angular/pwa</pre>
432432
<pre *ngSwitchCase="'dependency'">ng add _____</pre>
433433
<pre *ngSwitchCase="'test'">ng test</pre>
434-
<pre *ngSwitchCase="'build'">ng build --prod</pre>
434+
<pre *ngSwitchCase="'build'">ng build</pre>
435435
</div>
436436

437437
<!-- Links -->

0 commit comments

Comments
 (0)