top | item 23050317

Hacking Tool for HMR on Docker

2 points| gdi3d | 5 years ago |github.com

1 comment

order
[+] gdi3d|5 years ago|reply
Sometimes HMR tools don’t work quite right when using docker on some OS (OSX) with a mounted volume. You change a file and nothing happens, it doesn’t detect the change and no rebuild happens.

This hack-script will make sure your HMR tools (webpack, parcel, etc) sees that a file has been changed/created/deleted/etc.

It uses the command touch to update the file from inside the container helping the HMR tools to be aware of the update.

Why I build this thing?https://gdi3d.github.io/hacking-tool-for-js-with-hmr-on-dock...