Angular6 What's browserTarget

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 ...

1 Answer

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.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like