1

I want to build Angular with sourceMap, but without map file reference, so a hidden option must be set in angular.json but a json file is not flexible, I want to set it as command line parameter, just as

ng build --source-map=true/false

It seems like sourceMap can only set to true/false.

Is there any way to pass a object value to commmand-line parameter? like:

ng build --source-map=scripts:true,hidden:true
3

0

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.