启动lite-server时,可以指定端口
lite-server -- port 8000
Run Code Online (Sandbox Code Playgroud)
这给你以下结果:
[BS] Access URLs:
------------------------------------
Local: http://localhost:8000
External: http://192.168.0.5:8000
------------------------------------
UI: http://localhost:3001
UI External: http://192.168.0.5:3001
Run Code Online (Sandbox Code Playgroud)
如何更改UI的端口默认为3001(命令行和/或bs-config.json文件),类似8001?
lite-server ×1