combine / universal-react-redux

🧐 A sensible universal starter kit for React + Redux
110 stars 18 forks source link

Add server-side HMR #44

Closed xD3CODER closed 6 years ago

xD3CODER commented 6 years ago

It could be a great alternative to nodemon

What do you think ?

calvinl commented 6 years ago

Sure, I’ll take a look into it. Let me know if you have any suggestions or a PR if you want to look into it.

calvinl commented 6 years ago

@D3VHAX I've looked in server HMR and while it looks cool, it doesn't seem to provide that much more advantage over nodemon, other than the fact that you would not need to explicitly add watch files/directories like you do with nodemon.

In light of this, I've created a PR that uses node-dev in place of nodemon. It allows us to not have to specify a watch list since it only reloads only require()ed files.

calvinl commented 6 years ago

Closing for now, feel free to re-open if you have a better/actual solution for server-side HMR.