diff --git a/src/app.module.ts b/src/app.module.ts index 0871474..dc3f915 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -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); diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..07b1480 --- /dev/null +++ b/src/main.ts @@ -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); diff --git a/webpack.config.js b/webpack.config.js index 2c5fe51..c751891 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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'],