List developerMode with npm run dev (#544)
This adds a little bit of convenience when developping locally. Server started: - http://localhost:8080 - http://localhost:8080?developerMode
This commit is contained in:
parent
0f34e5752f
commit
3175f4851a
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,10 @@ export default async function serve(port) {
|
|||
async function verifyStartup(ws, port) {
|
||||
await new Promise((resolve, reject) => {
|
||||
ws.server.on("listening", () => {
|
||||
console.log(`Server started on http://localhost:${port}`);
|
||||
console.log("Server started:");
|
||||
console.log(` http://localhost:${port}`);
|
||||
console.log(` http://localhost:${port}?developerMode`);
|
||||
console.log("");
|
||||
resolve();
|
||||
});
|
||||
ws.server.on("error", (e) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue