Speed up workflow with Browser-Sync

I became frustrated game testing with MV's in game tester, so I installed node.js and browser-sync and put together a .bat file so that my test window automatically refreshes every time I save my game file. I'm on windows, mind you, i'll bet there's an easy shell script for mac. After correctly installing node.js and browser-sync, simply put this into a basic text doc:

Code:
cd C:\GameDEV\DeadFriends

browser-sync start ^--server ^--files ^"data/*.json^"
Modify the cd command to point to your project folder. Save it as a .bat. Run and the game should fire up.
This saved me a lot of time, and I wish I had this code starting out.
I don't think this is sufficient to constitute a Tutorial unless you can add in step-by-step on how to correctly install node.js and browser-sync; however, it is a really helpful tip, so I'm going to approve it but I'm moving it to the General MV Board. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/speed-up-workflow-with-browser-sync.124154/