- Install package:
npm i ngc-esbuild-devkit -D
- Change builder settings in
angular.json
:
- For production:
"architect": {
"build": {
"builder": "ngc-esbuild-devkit:build",
...
}
}
- For development:
"architect": {
"serve": {
"builder": "ngc-esbuild-devkit:serve",
...
}
}
- For testing:
"architect": {
"test": {
"builder": "ngc-esbuild-devkit:test",
...
}
}