最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

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

找到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"
  }
 }
 }
}

也可以通過命令行方式修改,如:

ng serve --port 4201

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

相關(guān)文章

最新評(píng)論

霸州市| 龙海市| 时尚| 江达县| 夏河县| 大庆市| 双峰县| 浪卡子县| 高要市| 攀枝花市| 安远县| 汕尾市| 永新县| 平邑县| 蒲江县| 封丘县| 平塘县| 神农架林区| 楚雄市| 阿鲁科尔沁旗| 青田县| 海原县| 淮北市| 大城县| 东乡县| 赣榆县| 北流市| 巴林右旗| 庆安县| 辽阳县| 大足县| 云和县| 吕梁市| 伊金霍洛旗| 桐城市| 嵩明县| 亚东县| 崇州市| 周宁县| 葫芦岛市| 壤塘县|