annotate src/main.ts @ 62:7787ca310644 webpack tip

update @angular to 4.4.5.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 18 Oct 2017 17:46:41 +0200
parents 7b9d616695d3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47
b65a031c4967 first step to angular2-final (2.4) version of the query browser.
casties
parents:
diff changeset
1 import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
60
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents: 57
diff changeset
2 import { enableProdMode } from '@angular/core';
47
b65a031c4967 first step to angular2-final (2.4) version of the query browser.
casties
parents:
diff changeset
3
57
d7c947909ab8 renamed query-app.module to app.module. loading query from url fragment works now.
casties
parents: 47
diff changeset
4 import { AppModule } from './app/app.module';
47
b65a031c4967 first step to angular2-final (2.4) version of the query browser.
casties
parents:
diff changeset
5
60
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents: 57
diff changeset
6 if (process.env.ENV === 'production') {
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents: 57
diff changeset
7 console.log("Running in ProdMode!");
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents: 57
diff changeset
8 enableProdMode();
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents: 57
diff changeset
9 }
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents: 57
diff changeset
10 // boot
47
b65a031c4967 first step to angular2-final (2.4) version of the query browser.
casties
parents:
diff changeset
11 platformBrowserDynamic().bootstrapModule(AppModule);