diff options
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 13 |
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' | |||
4 | import { AppModule } from './app/app.module' | 4 | import { AppModule } from './app/app.module' |
5 | import { environment } from './environments/environment' | 5 | import { environment } from './environments/environment' |
6 | 6 | ||
7 | import { hmrBootstrap } from './hmr' | ||
8 | |||
9 | if (environment.production) { | 7 | if (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 | ||
39 | if (environment.hmr) { | 37 | bootstrap() |
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 | } | ||