Skip to content

Commit 5afff6f

Browse files
r3stm4nulivz
authored andcommitted
refactor: setting HMR port (better solution of #586) (#590)
1 parent c5afc1b commit 5afff6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function resolveHost (host) {
143143

144144
async function resolvePort (port) {
145145
const portfinder = require('portfinder')
146-
portfinder.basePort = port || 8080
146+
portfinder.basePort = parseInt(port) || 8080
147147
port = await portfinder.getPortPromise()
148148
return port
149149
}

0 commit comments

Comments
 (0)