Map / route to correct HTML file
Summary: CHANGELOG: Open Flipper Server at / Reviewed By: lawrencelomax Differential Revision: D37517406 fbshipit-source-id: 71043c3df75d9436020da477c937795671fa15a9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
47956087ee
commit
13535e9753
@@ -96,7 +96,7 @@ async function start() {
|
||||
const {app, server, socket, readyForIncomingConnections} = await startServer({
|
||||
port: argv.port,
|
||||
staticDir,
|
||||
entry: 'index.web.dev.html',
|
||||
entry: `index.web${argv.bundler ? '.dev' : ''}.html`,
|
||||
});
|
||||
|
||||
const flipperServer = await startFlipperServer(
|
||||
@@ -153,9 +153,7 @@ start()
|
||||
console.log(
|
||||
'Flipper server started and listening at port ' + chalk.green(argv.port),
|
||||
);
|
||||
const url = `http://localhost:${argv.port}/index.web${
|
||||
argv.bundler ? '.dev' : ''
|
||||
}.html`;
|
||||
const url = `http://localhost:${argv.port}`;
|
||||
console.log('Go to: ' + chalk.green(chalk.bold(url)));
|
||||
if (argv.open) {
|
||||
open(url);
|
||||
|
||||
Reference in New Issue
Block a user