FrontendDeveloper.in

Angular question detail

How do you use Bazel with Angular CLI?

The @angular/bazel package provides a builder that allows Angular CLI to use Bazel as the build tool.

  1. Use in an existing application: Add @angular/bazel using CLI
ng add @angular/bazel
  1. Use in a new application: Install the package and create the application with collection option
npm install -g @angular/bazel
ng new --collection=@angular/bazel

When you use ng build and ng serve commands, Bazel is used behind the scenes and outputs the results in dist/bin folder.

Back to all Angular questions
Get LinkedIn Premium at Rs 399