Separate hybrid application bootstrap.

This commit is contained in:
Alexis Lahouze 2017-07-24 19:53:24 +02:00
parent 6873b32005
commit 8fb5f2ff7a
3 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,6 @@ import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { UpgradeModule } from '@angular/upgrade/static';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { NgLoggerModule } from '@nsalaun/ng-logger';
import { RestangularModule } from 'ngx-restangular';
@ -52,4 +51,3 @@ export class AppModule {
}
}
platformBrowserDynamic().bootstrapModule(AppModule);

7
src/main.ts Normal file
View File

@ -0,0 +1,7 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
import { AppModule } from './app.module';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
platformBrowserDynamic().bootstrapModule(AppModule);

View File

@ -5,7 +5,7 @@ const webpack = require('webpack');
module.exports = {
context: path.resolve(__dirname, 'src'),
entry: './app.module.ts',
entry: './main.ts',
devtool: 'source-map',
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.html'],