Skip to content

Commit

Permalink
fix(bazel): ng build should produce prod bundle (#29136)
Browse files Browse the repository at this point in the history
`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 #28877

PR Close #29136
  • Loading branch information
kyliau authored and kara committed Mar 7, 2019
1 parent f856a65 commit 14ce8a9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/bazel/src/schematics/ng-add/index.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 14ce8a9

Please sign in to comment.