From c9a30e2c0de55ce420013f80a3d4c1f5de8bda28 Mon Sep 17 00:00:00 2001 From: splincode Date: Wed, 20 Mar 2024 16:22:05 +0300 Subject: [PATCH] chore: fix --- apps/demo/src/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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));