I’ve read a few pages about Hot Module Replacement in Webpack.
There’s even a sample app that uses it.
I’ve read all of this and still don’t get the idea.
What can I do with it?
- Is it supposed to only be used in development and not in production?
- Is it like LiveReload, but you have to manage it yourself?
- Is WebpackDevServer integrated with LiveReload in some way?
Suppose I want to update my CSS (one stylesheet) and JS modules when I save them to disk, without reloading the page and without using plugins such as LiveReload. Is this something Hot Module Replacement can help me with? What kind of work do I need to do, and what does HMR already provide?