Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ if (isSmokeTest) {
};
}

var shouldOpenBrowser = !process.argv.some(arg => arg.indexOf('--no-open-browser') > -1)

// Some custom utilities to prettify Webpack output.
// This is a little hacky.
// It would be easier if webpack provided a rich error object.
Expand Down Expand Up @@ -298,7 +300,9 @@ function runDevServer(port, protocol) {
clearConsole();
console.log(chalk.cyan('Starting the development server...'));
console.log();
openBrowser(port, protocol);
if (shouldOpenBrowser) {
openBrowser(port, protocol);
}
});
}

Expand Down