Skip to content
Permalink
Browse files

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
  • Loading branch information...
kyliau authored and benlesh committed Apr 20, 2019
1 parent 71498a4 commit 96a828993f0cc6e7f2dd5dd55d862afb91d07a86
Showing with 6 additions and 1 deletion.
  1. +6 −1 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(

0 comments on commit 96a8289

Please sign in to comment.
You can’t perform that action at this time.