Skip to content

Commit

Permalink
fix(@schematics/angular): remove references to the prod flag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cexbrayat authored and alan-agius4 committed Mar 11, 2021
1 parent 95aa2b8 commit 663c4bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration/angular_cli/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ <h2>Next Steps</h2>
<pre *ngSwitchCase="'pwa'">ng add @angular/pwa</pre>
<pre *ngSwitchCase="'dependency'">ng add _____</pre>
<pre *ngSwitchCase="'test'">ng test</pre>
<pre *ngSwitchCase="'build'">ng build --prod</pre>
<pre *ngSwitchCase="'build'">ng build</pre>
</div>

<!-- Links -->
Expand Down
2 changes: 1 addition & 1 deletion integration/angular_cli/src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@
<pre *ngSwitchCase="'pwa'">ng add @angular/pwa</pre>
<pre *ngSwitchCase="'dependency'">ng add _____</pre>
<pre *ngSwitchCase="'test'">ng test</pre>
<pre *ngSwitchCase="'build'">ng build --prod</pre>
<pre *ngSwitchCase="'build'">ng build</pre>
</div>

<!-- Links -->
Expand Down

0 comments on commit 663c4bc

Please sign in to comment.