tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.43k stars 484 forks source link

Run code on watch update #355

Open giraffekey opened 4 years ago

giraffekey commented 4 years ago

Some sort of "onUpdate" handler would be helpful:

liveServer.start({
    ...
    onUpdate() {
        console.log("Updating...")
        // some more code
    }
})
Aworldc commented 2 years ago

Someone found a way to do it here