add protocol to startup message

This commit is contained in:
Rich Harris
2018-03-16 10:51:19 -04:00
parent 953694f77f
commit a95ddee48d
2 changed files with 2 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ export async function dev(opts: { port: number, open: boolean }) {
if (first) {
first = false;
console.log(`${clorox.bold.cyan(`> Listening on localhost:${port}`)}`);
console.log(`${clorox.bold.cyan(`> Listening on http://localhost:${port}`)}`);
if (opts.open) child_process.exec(`open http://localhost:${port}`);
}
});

View File

@@ -34,6 +34,6 @@ export async function start(dir: string, opts: { port: number, open: boolean })
});
await ports.wait(port);
console.log(`${clorox.bold.cyan(`> Listening on localhost:${port}`)}`);
console.log(`${clorox.bold.cyan(`> Listening on http://localhost:${port}`)}`);
if (opts.open) child_process.exec(`open http://localhost:${port}`);
}