1 2 3 4 5 6 7 8 9 10
import { enableProdMode } from '@angular/core'; import { bootstrap } from '@angular/platform-browser-dynamic'; import { AppComponent } from './app/app.component'; if (process.env.ENV === 'production') { enableProdMode(); } bootstrap(AppComponent);