fix(@schematics/angular): add serverTarget to app shell production configuration

This commit is contained in:
puku0x 2018-10-31 12:04:07 +09:00 committed by Alex Eagle
parent 0909943259
commit 258df041c3
2 changed files with 2 additions and 0 deletions

View File

@ -194,6 +194,7 @@ function addAppShellConfigToWorkspace(options: AppShellOptions): Rule {
configurations: {
production: {
browserTarget: `${options.clientProject}:build:production`,
serverTarget: `${options.clientProject}:server:production`,
},
},
};

View File

@ -69,6 +69,7 @@ describe('App Shell Schematic', () => {
expect(target.options.serverTarget).toEqual('bar:server');
expect(target.options.route).toEqual('shell');
expect(target.configurations.production.browserTarget).toEqual('bar:build:production');
expect(target.configurations.production.serverTarget).toEqual('bar:server:production');
});
it('should add router module to client app module', () => {