aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/main.ts')
-rw-r--r--client/src/main.ts13
1 files changed, 1 insertions, 12 deletions
diff --git a/client/src/main.ts b/client/src/main.ts
index 3fb9b346e..2d1749c42 100644
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -4,8 +4,6 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'
4import { AppModule } from './app/app.module' 4import { AppModule } from './app/app.module'
5import { environment } from './environments/environment' 5import { environment } from './environments/environment'
6 6
7import { hmrBootstrap } from './hmr'
8
9if (environment.production) { 7if (environment.production) {
10 enableProdMode() 8 enableProdMode()
11} 9}
@@ -36,13 +34,4 @@ const bootstrap = () => platformBrowserDynamic()
36 return null 34 return null
37 }) 35 })
38 36
39if (environment.hmr) { 37bootstrap()
40 if (module[ 'hot' ]) {
41 hmrBootstrap(module, bootstrap)
42 } else {
43 console.error('HMR is not enabled for webpack-dev-server!')
44 console.log('Are you using the --hmr flag for ng serve?')
45 }
46} else {
47 bootstrap()
48}