Respect --no-open option during server startup
Summary: This was previously ignored and can get a little annoying while testing. Changelog: Respect --no-open during server startup Reviewed By: timur-valiev Differential Revision: D34932895 fbshipit-source-id: d2bf9d6fb57a76834b86ab013baf01628d2550fc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d40ff61870
commit
314855f5e1
@@ -130,7 +130,7 @@ let startCount = 0;
|
||||
async function restartServer() {
|
||||
try {
|
||||
await compileServerMain(true);
|
||||
await launchServer(true, ++startCount === 1); // only openon the first time
|
||||
await launchServer(true, argv.open && ++startCount === 1); // only open on the first time
|
||||
} catch (e) {
|
||||
console.error(
|
||||
chalk.red(
|
||||
|
||||
Reference in New Issue
Block a user