1.0.0 • Published 6 years ago
webpack-hot-module-monitor v1.0.0
webpack-hot-module-monitor 🔥
Prints a message in the browser console to let you know that Hot Module Replacement is done
Screenshot
Installation
npm install webpack-hot-module-monitor
import monitor from 'webpack-hot-module-monitor'
monitor() //That's it!
By default, it also clears the console after each reload. This means that you always know that any errors/messages in the console are from the latest version. No irrelevant junk left behind.
If you don't want this, you can turn it off:
monitor({clear:false})
The package is only 30 lines, with no dependencies. If Hot Module Replacement is not available (in production mode for example) it will simply do nothing.
1.0.0
6 years ago