Closed pixelastic closed 3 years ago
I couldn't find a suitable replacement.
serve
does not have live-reload (https://github.com/vercel/serve)
So maybe time to write my own? https://khtdr.com/tutorials/simple-live-reload-server.html
What I need is a local http server that:
dist
folderdist
I have implemented some logic in norska-serve
. It starts an express server that forward requests to specific folder. It also adds the live-reload script to the page.
I could extract it into its own module, to give it a proper command line interface, but I don't feel the need right now, so this will do for now.
live-server
hasn't been updated for a long time and useslatest
as the version number for two of its dependencies (colors
andopn
).opn
has been deprecated in favor ofopen
In the short term, this results in warning when installing `norska:
https://github.com/tapio/live-server