Skip to content

Commit 14ce8a9

Browse files
kyliaukara
authored andcommitted
fix(bazel): ng build should produce prod bundle (angular#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 angular#28877 PR Close angular#29136
1 parent f856a65 commit 14ce8a9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • packages/bazel/src/schematics/ng-add

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

Lines changed: 2 additions & 7 deletions
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)