From 3d40431db0892c7c71fdeb8228aaefb207f7aa03 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Fri, 18 May 2018 14:42:06 +0100 Subject: [PATCH] fix(@schematics/angular): add prod config to e2e schematic Fix https://github.com/angular/angular-cli/issues/10909 and similar others. --- packages/schematics/angular/e2e/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/schematics/angular/e2e/index.ts b/packages/schematics/angular/e2e/index.ts index 8984b30c28..507aa4e335 100644 --- a/packages/schematics/angular/e2e/index.ts +++ b/packages/schematics/angular/e2e/index.ts @@ -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',