AriaFallah / WebpackTutorial

A simple webpack tutorial
MIT License
2.23k stars 212 forks source link

Simple explanation for when Hot Module Replacement will fail and require a full page reload #3

Closed AriaFallah closed 8 years ago

AriaFallah commented 8 years ago

Needed this in my code:

if (module.hot) {
  module.hot.accept()
}

following up here: http://stackoverflow.com/questions/35255941/when-shouldnt-you-accept-webpack-hot-module-reloading