Improve dev server start message and show it after initial setup.

This commit is contained in:
Dillon Kearns 2021-05-15 18:33:52 -07:00
parent d052049212
commit 8e17ba2787

View File

@ -50,6 +50,11 @@ async function start(options) {
.catch(() => {
elmMakeRunning = false;
});
console.log(
`${kleur.dim(`elm-pages dev server running at`)} ${kleur.green(
`<http://localhost:${port}>`
)}`
);
}
setup();
@ -100,8 +105,6 @@ async function start(options) {
}
}
console.log(`elm-pages dev server running at http://localhost:${port}`);
watcher.on("all", async function (eventName, pathThatChanged) {
console.log({ pathThatChanged });
if (pathThatChanged === "elm.json") {