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?

  1. Is it supposed to only be used in development and not in production?
  2. Is it like LiveReload, but you have to manage it yourself?
  3. 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?

2 Answers
2

Leave a Reply

Your email address will not be published. Required fields are marked *