Closed maks-humeniuk closed 5 years ago
Would you try \"ng -- build --prod\"
?
run-s "ng build --prod"
is equivalent to npm run ng build --prod
and npm run
command doesn't have --prod
option. You have to use npm run ng -- build --prod
to pass the argument to the script.
@mysticatea, it works, thank you very much!
Hello.
It seems like
ng build
--prod
flag doesn't work in thispackage.json
:ng build
runs without--prod
flag. How can I resolve this issue?Configuration: Angular: 7.2.0+ Angular CLI: 7.2.1+ npm-run-all: 4.1.5+