I would like to run a simple-http-server (a blocking command) and have it automatically restart when specified files change on Linux. Something like this:
hotreload -w src/ -w index.html simple-http-server
To restart the command whenever the directory src
or file index.html
change.
Is there a command like this for linux? I have only found extensions for npm and the very low level inotify API.