angular - Set default host and port for ng serve in config file -
i want know if can set host , port in config file don't have type
ng serve --host foo.bar --port 80
instead of just
ng serve
as of recent versions of angular cli (v1.0.0-rc.0
@ least perhaps earlier) can set these directly in angular-cli.json
underneath defaults
element:
{ "defaults": { "serve": { "port": 4444, "host": "10.1.2.3" } } }
Comments
Post a Comment