Skip to content

Commit

Permalink
docs(build-options): remove enableProdMode() reference
Browse files Browse the repository at this point in the history
It's discouraged now: https://angular.dev/api/core/enableProdMode

"Using this method is discouraged as the Angular CLI will set production mode when using the optimization option."
  • Loading branch information
rtpHarry authored Jan 6, 2025
1 parent 2e371a3 commit 40910ca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/angular/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ import { routes } from './app/app.routes';
import { AppComponent } from './app/app.component';
import { environment } from './environments/environment';

if (environment.production) {
enableProdMode();
}

bootstrapApplication(AppComponent, {
providers: [
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
Expand Down

0 comments on commit 40910ca

Please sign in to comment.