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.
Comments URL: https://news.ycombinator.com/item?id=41284189
Points: 1
# Comments: 0
Leave a Reply
You must be logged in to post a comment.