DEV Community

Discussion on: Using webpack-dev-server and HMR on a Remote Machine/VPS

Collapse
 
pavelloz profile image
Paweł Kowalski • Edited

I found browser-sync one liner to work, and its much easier to setup (and can be done without access to nginx etc.):

npx browser-sync start --files app/* --reload-delay 1000 --proxy https://myexample.com

--files what you want to trigger refresh on
--delay because webpack needs to build & upload files over the network

Cheers ;)