欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

angular-cli修改端口號(hào)【angular2】

 更新時(shí)間:2017年04月19日 09:39:46   作者:Mr_Sparta  
本篇文章主要介紹了angular2中angular-cli修改端口號(hào)的相關(guān)知識(shí)。具有很好的參考價(jià)值。下面跟著小編一起來(lái)看下吧

找到node_modules/angular-cli/lib/config/schema.json

default值就是默認(rèn)的端口

"serve": {
 "description": "Properties to be passed to the serve command",
 "type": "object",
 "properties": {
  "port": {
  "description": "The port the application will be served on",
  "type": "number",
  "default": 4200
  },
  "host": {
  "description": "The host the application will be served on",
  "type": "string",
  "default": "localhost"
  }
 }
 }
}

也可以通過(guò)命令行方式修改,如:

ng serve --port 4201

以上就是本文的全部?jī)?nèi)容,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來(lái)一定的幫助,同時(shí)也希望多多支持腳本之家!

相關(guān)文章

最新評(píng)論