Skip to content

Commit 885d949

Browse files
alan-agius4alexeagle
authored andcommitted
fix(@schematics/angular): app shell schematic does not use production configuration
Closes: #11578
1 parent 643452f commit 885d949

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/schematics/angular/app-shell/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ function addAppShellConfigToWorkspace(options: AppShellOptions): Rule {
196196
serverTarget: `${options.clientProject}:server`,
197197
route: options.route,
198198
},
199+
configurations: {
200+
production: {
201+
browserTarget: `${options.clientProject}:build:production`,
202+
},
203+
},
199204
};
200205

201206
if (!workspace.projects[options.clientProject]) {

packages/schematics/angular/app-shell/index_spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ describe('App Shell Schematic', () => {
6868
expect(target.options.browserTarget).toEqual('bar:build');
6969
expect(target.options.serverTarget).toEqual('bar:server');
7070
expect(target.options.route).toEqual('shell');
71+
expect(target.configurations.production.browserTarget).toEqual('bar:build:production');
7172
});
7273

7374
it('should add router module to client app module', () => {

0 commit comments

Comments
 (0)