I want to know if i can set a host and a port in a config file so I don\'t have to type
ng serve --host foo.bar --port 80
instead of just>
This changed in the latest Angular CLI.
The file name changed to angular.json, and the structure also changed.
angular.json
This is what you should do:
"projects": { "project-name": { ... "architect": { "serve": { "options": { "host": "foo.bar", "port": 80 } } } ... } }