Rename app.module.(server|browser).ts to app.(server|browser).module.ts. Fixes #1228.

This commit is contained in:
Steve Sanderson 2017-08-25 11:02:02 -07:00
Родитель e2030fb1fa
Коммит 04fe1204a9
6 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppModuleShared } from './app.module.shared';
import { AppModuleShared } from './app.shared.module';
import { AppComponent } from './components/app/app.component';
@NgModule({

Просмотреть файл

@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import { AppModuleShared } from './app.module.shared';
import { AppModuleShared } from './app.shared.module';
import { AppComponent } from './components/app/app.component';
@NgModule({

Просмотреть файл

@ -3,7 +3,7 @@ import 'zone.js';
import 'bootstrap';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module.browser';
import { AppModule } from './app/app.browser.module';
if (module.hot) {
module.hot.accept();

Просмотреть файл

@ -5,7 +5,7 @@ import { APP_BASE_HREF } from '@angular/common';
import { enableProdMode, ApplicationRef, NgZone, ValueProvider } from '@angular/core';
import { platformDynamicServer, PlatformState, INITIAL_CONFIG } from '@angular/platform-server';
import { createServerRenderer, RenderResult } from 'aspnet-prerendering';
import { AppModule } from './app/app.module.server';
import { AppModule } from './app/app.server.module';
enableProdMode();

Просмотреть файл

@ -47,7 +47,7 @@ module.exports = (env) => {
new webpack.optimize.UglifyJsPlugin(),
new AotPlugin({
tsConfigPath: './tsconfig.json',
entryModule: path.join(__dirname, 'ClientApp/app/app.module.browser#AppModule'),
entryModule: path.join(__dirname, 'ClientApp/app/app.browser.module#AppModule'),
exclude: ['./**/*.server.ts']
})
])
@ -68,7 +68,7 @@ module.exports = (env) => {
// Plugins that apply in production builds only
new AotPlugin({
tsConfigPath: './tsconfig.json',
entryModule: path.join(__dirname, 'ClientApp/app/app.module.server#AppModule'),
entryModule: path.join(__dirname, 'ClientApp/app/app.server.module#AppModule'),
exclude: ['./**/*.browser.ts']
})
]),