# control-webpack-hmr

> help you pause webpack's hmr with your code. Once hmr is started, any tasks that were paused will be executed.

Latest version **1.0.2** (published 2023-07-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install control-webpack-hmr
pnpm add control-webpack-hmr
yarn add control-webpack-hmr
bun add control-webpack-hmr
```

Provides the command `control-hmr`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-07-27 |
| First published | 2023-07-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | lvzl |
| Maintainers | lvzl |

## Links

- npm: https://www.npmjs.com/package/control-webpack-hmr
- Repository: https://github.com/lv-z-l/control-webpack-hmr
- Homepage: https://github.com/lv-z-l/control-webpack-hmr#readme
- Issues: https://github.com/lv-z-l/control-webpack-hmr/issues
- npm.io page: https://npm.io/package/control-webpack-hmr

## Recent versions

- 1.0.2 (latest) — 2023-07-27
- 1.0.1 — 2023-07-26
- 1.0.0 — 2023-07-26

## 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:

```js
// 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

```js
process.env.DELAY_CALL_TIMEOUT = 1000
```

# limits

- package manager: npm | yarn, pnpm not support!

- webpack version: 4.x.x

---
_Source: https://npm.io/package/control-webpack-hmr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
