Conversation
This is to fix the bug that if the hmrPort != port, a server is not started on the hmrPort and HMR doesn't work
|
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/8sbabj81NQoeCqUyC8Rgidp8Uhww |
This is to fix the bug that if the hmrPort != port, a server is not started on the hmrPort and HMR doesn't work
Changes
If the server is supplied it is not checking to see whether the hmrPort is different to the server port. If it is different, a new server needs to be started on the HMR port. Supplying null to her-server-enngine will cause it to start a new server on that port
Testing
tested locally with hmrPort!=port, works correctly
Docs