From 14ce8a9c310c5b5cc91f1874b6339a9b6b5571b6 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Wed, 6 Mar 2019 11:02:44 -0800 Subject: [PATCH] fix(bazel): ng build should produce prod bundle (#29136) `ng build` should produce a bundle that could be readily deployed to a web server, similar to the behavior of current `ng build` with webpack. Note that in Bazel, there is no `ng build` for dev bundles. Instead, users are expected to run `ts_devserver`. Closes https://github.com/angular/angular/issues/28877 PR Close #29136 --- packages/bazel/src/schematics/ng-add/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/bazel/src/schematics/ng-add/index.ts b/packages/bazel/src/schematics/ng-add/index.ts index bb3234a1f0..9bb354900d 100755 --- a/packages/bazel/src/schematics/ng-add/index.ts +++ b/packages/bazel/src/schematics/ng-add/index.ts @@ -127,14 +127,9 @@ function updateAngularJsonToUseBazelBuilder(options: Schema): Rule { recorder, architect, 'build', { builder: '@angular/bazel:build', options: { - targetLabel: '//src:bundle.js', + targetLabel: '//src:prodapp', bazelCommand: 'build', - }, - configurations: { - production: { - targetLabel: '//src:bundle', - }, - }, + } }, indent); replacePropertyInAstObject(