Today – from my sick bed – I got a minimalist "live reload" added to my “PAT-stack” (PHP-AlpineJS-Tailwind) small-site-template.
https://github.com/rosswintle/small-site-template
This started off as a simple PHP static site generator. But now has some other stuff built in.
It's my perfect, low-dependency setup for simple static sites.
And now it has simple PHP and JS scripts for live reloading, using server-sent events:
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events