Here is a standard angular.json file
"projects": {
"myApp": {
[...]
"architect": {
"build": {
[...]
"configurations": {
"production": { [...] },
"debug": { [...] }
}
},
"serve": {
[...]
"configurations": {
"production": {
"browserTarget": "myApp:build:production"
},
"debug": {
"browserTarget": "myApp:build:debug"
}
}
}
}
}
}
I don't understand what's the browserTarget
setting for ?
I couldn't find any documentation, it seems that I'd have to dig into @angular-devkit
...
browserTarget is a setting that maps a configuration to a build target e.g. build , serve , test , lint .
A file named angular. json at the root level of an Angular workspace provides workspace-wide and project-specific configuration defaults for build and development tools provided by the Angular CLI. Path values given in the configuration are relative to the root workspace folder.
browserTarget
is a setting that maps a configuration to a build target e.g. build
, serve
, test
, lint
. It's kind of a funny name. To be honest I don't know why it's called browserTarget
instead of just target
.
Further reading here at the angular.io docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With