Skip to content

Commit

Permalink
fix(bazel): restore ng build --prod (#30005)
Browse files Browse the repository at this point in the history
`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 22, 2019
1 parent 71498a4 commit 96a8289
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/bazel/src/schematics/ng-add/index.ts
Expand Up @@ -140,7 +140,12 @@ function updateAngularJsonToUseBazelBuilder(options: Schema): Rule {
options: {
targetLabel: '//src:prodapp',
bazelCommand: 'build',
}
},
configurations: {
production: {
targetLabel: '//src:prodapp',
},
},
},
indent);
replacePropertyInAstObject(
Expand Down

0 comments on commit 96a8289

Please sign in to comment.