Skip to content

Commit

Permalink
fix(bazel): restore ng build --prod (angular#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 angular#30005
  • Loading branch information
kyliau authored and BioPhoton committed May 21, 2019
1 parent 36c1fd8 commit ee801c4
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 ee801c4

Please sign in to comment.