Skip to content

Commit

Permalink
refactor: setting HMR port (better solution of #586) (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
r3stm4n authored and ulivz committed Jun 17, 2018
1 parent c5afc1b commit 5afff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dev.js
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 5afff6f

Please sign in to comment.