diff --git a/apps/demo/src/main.ts b/apps/demo/src/main.ts index 4b970bf4..710ad543 100644 --- a/apps/demo/src/main.ts +++ b/apps/demo/src/main.ts @@ -1,6 +1,12 @@ +import {enableProdMode} from '@angular/core'; import {bootstrapApplication} from '@angular/platform-browser'; import {AppComponent} from './app/app.component'; import {appConfig} from './app/app.config'; +import {environment} from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} bootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));