aboutsummaryrefslogtreecommitdiffstats
path: root/webapp/src/main.ts
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-10 16:29:10 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-10 16:36:12 +0100
commitfb2f6b918beb0a994ad304bfd678ef0c5c562210 (patch)
tree21c64ee76658b2e68559891ba317cb893afd2d44 /webapp/src/main.ts
parentc51d5034d527578da70bdd41b9ce13f28455c598 (diff)
Moved Dashboad webapp on Angular 5 !
Webapp loading time decreased from 2.7s to 1.5sec ! Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'webapp/src/main.ts')
-rw-r--r--webapp/src/main.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/webapp/src/main.ts b/webapp/src/main.ts
new file mode 100644
index 0000000..401abe5
--- /dev/null
+++ b/webapp/src/main.ts
@@ -0,0 +1,11 @@
+import { enableProdMode } from '@angular/core';
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
+
+import { AppModule } from './app/app.module';
+import { environment } from './environments/environment';
+
+if (environment.production) {
+ enableProdMode();
+}
+
+platformBrowserDynamic().bootstrapModule(AppModule);