Skip to content
Permalink
Browse files

fix(bazel): ng build should produce prod bundle (#29136)

`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 6, 2019
1 parent f856a65 commit 14ce8a9c310c5b5cc91f1874b6339a9b6b5571b6
Showing with 2 additions and 7 deletions.
  1. +2 −7 packages/bazel/src/schematics/ng-add/index.ts
@@ -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(

0 comments on commit 14ce8a9

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.