serve
serve copied to clipboard
Suggestion: Add an option('-o --open' for example) to open browser window after starting the server
Hi, I really apprecite this server tool you built, which has elegant ui in modern style. Especially
servewon't treats
./publicunder root directory as default serving path, this is why I start to use
serveinstead of
http-server`.
However, it seems both tools have own advantage. http-server
support configuring opening browser window after starting server , but serve
doesn't support. So I propose that serve
can add this feature. Thanks.
That feature request has been raised before in https://github.com/zeit/serve/pull/454, https://github.com/zeit/serve/issues/425, and https://github.com/zeit/serve/pull/116, which were closed in the interest of keeping things simple. Since serve
is not particularly simple now (has copy to clipboard enabled by default, flags to use certificates, etc.) I wonder if the maintainers might reconsider adding a flag that calls opn
or open
or some other library for opening urls? If so I'd be happy to go ahead and put in the PR.
I forked 🤷 https://github.com/ungoldman/serve