From 96a828993f0cc6e7f2dd5dd55d862afb91d07a86 Mon Sep 17 00:00:00 2001 From: Keen Yee Liau Date: Sat, 20 Apr 2019 10:41:41 -0700 Subject: [PATCH] fix(bazel): restore ng build --prod (#30005) `ng build` by default builds the prodapp because there is not a dev build in Bazel. This PR restores the `--prod` to do the same to prevent achitect from showing missing config error. PR Close #30005 --- packages/bazel/src/schematics/ng-add/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/bazel/src/schematics/ng-add/index.ts b/packages/bazel/src/schematics/ng-add/index.ts index 098a7c2073..3021c7e4c9 100755 --- a/packages/bazel/src/schematics/ng-add/index.ts +++ b/packages/bazel/src/schematics/ng-add/index.ts @@ -140,7 +140,12 @@ function updateAngularJsonToUseBazelBuilder(options: Schema): Rule { options: { targetLabel: '//src:prodapp', bazelCommand: 'build', - } + }, + configurations: { + production: { + targetLabel: '//src:prodapp', + }, + }, }, indent); replacePropertyInAstObject(