:set backupcopy=yes to trigger fs events for node
While trying to get hot module reloading working with
parcel today I noticed that sometimes parcel's server didn't register when a file was saved.
It turns out that vim has some weird behaviour around writing files that prevents node's filesystem watcher from getting events that the file changed.
You can read about that weird behaviour here
You can get around this behaviour with:
according to vim
help backupcopy this will:
make a copy of the file and overwrite the original one
triggering the fs event.Tweet