提交 5afff6fe 编写于 作者: R r3stm4n 提交者: ULIVZ

refactor: setting HMR port (better solution of #586) (#590)

上级 c5afc1bd
......@@ -143,7 +143,7 @@ function resolveHost (host) {
async function resolvePort (port) {
const portfinder = require('portfinder')
portfinder.basePort = port || 8080
portfinder.basePort = parseInt(port) || 8080
port = await portfinder.getPortPromise()
return port
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册