Show HN: Wd-40, a static webserver with automatic hot-reloads

https://github.com/baalimago/wd-40
by baalimago • 2 years ago
108 84 2 years ago

It works by injecting a websocket script which listens for file changes. The filechanges are detected using the go fsnotify package, which in turn uses the different OS's equivalent to inotify.

I basically got bored with alt-tabbing and refresing when developing 'vanilla-js'. The hot-reload in the modern frameworks are very nice, so figured I'd recreate it.

Related Stories

Loading related stories...

Source preview

github.com