diff --git a/src/commands/dev/index.js b/src/commands/dev/index.js index 535390c9555..0c62e322154 100644 --- a/src/commands/dev/index.js +++ b/src/commands/dev/index.js @@ -438,7 +438,11 @@ class DevCommand extends Command { } }) - if (!isEmpty(config.dev) && (!config.dev.hasOwnProperty('autoLaunch') || config.dev.autoLaunch !== false)) { + if ( + isEmpty(config.dev) || + !config.dev.hasOwnProperty('autoLaunch') || + (config.dev.hasOwnProperty('autoLaunch') && config.dev.autoLaunch !== false) + ) { try { await open(url) } catch (err) {