Enable ES modules and CSS hot module replacement for the web dev server.
npm install @chialab/wds-plugin-hmr
Wds Plugin Hmr CSS • Enable ES modules and CSS hot module replacement for the Web Dev Server.
---
``sh`
npm i @chialab/wds-plugin-hmr -D
`sh`
yarn add @chialab/wds-plugin-hmr -D
`js
import { hmrPlugin } from '@chialab/wds-plugin-hmr';
import { startDevServer } from '@web/dev-server';
await startDevServer({
plugins: [hmrPlugin()],
});
``
---
Wds Plugin Hmr CSS is released under the MIT license.