Skip to content

Commit 14ce8a9

Browse files
kyliaukara
authored andcommittedMar 7, 2019
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
1 parent f856a65 commit 14ce8a9

File tree

1 file changed

+2
-7
lines changed
  • packages/bazel/src/schematics/ng-add

1 file changed

+2
-7
lines changed
 

‎packages/bazel/src/schematics/ng-add/index.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,9 @@ function updateAngularJsonToUseBazelBuilder(options: Schema): Rule {
127127
recorder, architect, 'build', {
128128
builder: '@angular/bazel:build',
129129
options: {
130-
targetLabel: '//src:bundle.js',
130+
targetLabel: '//src:prodapp',
131131
bazelCommand: 'build',
132-
},
133-
configurations: {
134-
production: {
135-
targetLabel: '//src:bundle',
136-
},
137-
},
132+
}
138133
},
139134
indent);
140135
replacePropertyInAstObject(

0 commit comments

Comments
 (0)
Please sign in to comment.