Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
fix(@schematics/angular): add prod config to e2e schematic
Browse files Browse the repository at this point in the history
Fix angular/angular-cli#10909 and similar others.
  • Loading branch information
filipesilva committed May 24, 2018
1 parent db20670 commit 3d40431
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/schematics/angular/e2e/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ function addAppToWorkspaceFile(options: E2eOptions, workspace: WorkspaceSchema):
protractorConfig: `${projectRoot}protractor.conf.js`,
devServerTarget: `${options.relatedAppName}:serve`,
},
configurations: {
production: {
devServerTarget: `${options.relatedAppName}:serve:production`,
},
},
},
lint: {
builder: '@angular-devkit/build-angular:tslint',
Expand Down

0 comments on commit 3d40431

Please sign in to comment.