diff --git a/src/config.js b/src/config.js index 1999df11e..958b991ae 100644 --- a/src/config.js +++ b/src/config.js @@ -1,3 +1,5 @@ +const argv = require('yargs').argv; + module.exports = function() { return { /** @@ -23,7 +25,7 @@ module.exports = function() { */ hmrOptions: { host: 'localhost', - port: '8080' + port: !!argv.hmrPort ? argv.hmrPort : '8080' }, /**