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

angular-cli修改端口號【angular2】

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

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

default值就是默認的端口

"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

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

相關(guān)文章

最新評論

梨树县| 永靖县| 翼城县| 高州市| 盐源县| 腾冲县| 武陟县| 成都市| 潜山县| 江城| 滕州市| 仲巴县| 公主岭市| 安岳县| 卢龙县| 含山县| 凌云县| 林芝县| 廉江市| 赫章县| 吴忠市| 军事| 黔东| 吉首市| 当雄县| 华坪县| 安西县| 务川| 丰都县| 府谷县| 瓮安县| 山东省| 长春市| 外汇| 冷水江市| 灌云县| 新野县| 泽州县| 民勤县| 河津市| 独山县|