control-webpack-hmr
v1.0.2
Published
help you pause webpack's hmr with your code. Once hmr is started, any tasks that were paused will be executed.
Downloads
2
Readme
control-webpack-hmr
help you pause webpack's hmr with your code. Once hmr is started, any tasks that were paused will be executed.
Usage
Normally, once installed, you can use it like this:
// pause hmr
process.env.DELAY_CALL_COMPILE = true
// restart
process.env.DELAY_CALL_COMPILE = false
The internal default is to determine if hmr can be executed every 2 seconds, which you can customize via process.env.DELAY_CALL_TIMEOUT
process.env.DELAY_CALL_TIMEOUT = 1000
limits
package manager: npm | yarn, pnpm not support!
webpack version: 4.x.x