AriaFallah/WebpackTutorial

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

AriaFallah opened this issue · 1 comments

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

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