# @chialab/wds-plugin-hmr

> Enable ES modules and CSS hot module replacement for the web dev server.

Latest version **0.19.1** (published 2026-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chialab/wds-plugin-hmr
pnpm add @chialab/wds-plugin-hmr
yarn add @chialab/wds-plugin-hmr
bun add @chialab/wds-plugin-hmr
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.19.1 |
| Published | 2026-02-25 |
| First published | 2022-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 39.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 183 |
| Author | Chialab |
| Maintainers | chialab-admin, chialab-developers |
| Keywords | dev-server, plugin, hmr, css, livereload |

## Links

- npm: https://www.npmjs.com/package/@chialab/wds-plugin-hmr
- Repository: https://github.com/chialab/rna
- Homepage: https://github.com/chialab/rna#readme
- Issues: https://github.com/chialab/rna/issues
- npm.io page: https://npm.io/package/@chialab/wds-plugin-hmr

## Dependencies (1)

- [@chialab/es-dev-server](https://npm.io/package/@chialab/es-dev-server.md) ^0.19.1

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.19.1 (latest) — 2026-02-25
- 0.19.0-beta.1 (beta) — 2024-07-09
- 0.18.0-alpha.1 (alpha) — 2023-08-29
- 0.19.0 — 2025-08-25
- 0.19.0-beta.0 — 2024-03-11
- 0.18.0 — 2024-01-11
- 0.18.0-alpha.0 — 2023-05-01
- 0.17.1 — 2022-08-25

## README

# Wds Plugin Hmr CSS

Enable ES modules and CSS hot module replacement for the [Web Dev Server](https://modern-web.dev/docs/dev-server/overview/).

> [!CAUTION]
> Since we are moving away from the RNA cli, we are discontinuing the development of Web Dev Server plugins.

[![NPM](https://img.shields.io/npm/v/@chialab/wds-plugin-hmr.svg)](https://www.npmjs.com/package/@chialab/wds-plugin-hmr)

---

## Install

```sh
npm i @chialab/wds-plugin-hmr -D
```

```sh
yarn add @chialab/wds-plugin-hmr -D
```

```sh
pnpm add @chialab/wds-plugin-hmr -D
```

## Usage

```js
import { hmrPlugin } from '@chialab/wds-plugin-hmr';
import { startDevServer } from '@web/dev-server';

await startDevServer({
    plugins: [hmrPlugin()],
});
```

## License

**Wds Plugin Hmr CSS** is released under the [MIT](https://github.com/chialab/rna/blob/main/packages/wds-plugin-hmr/LICENSE) license.

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