@microbackend/plugin-hmr
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@microbackend/plugin-hmr

Microbackend plugin to add hot module reloading in development.

Installation

npx microbackend plugin add @microbackend/plugin-hmr

Usage

import createPluginConfig from "@microbackend/plugin-core/build/webpack.build";

await createPluginConfig({
  pluginOptions: {
    "@microbackend/plugin-hmr": {
      isEnabled: true,
      scriptsToRunOnBuildEnd: ["npx nodemon"],
    },
  },
});

Both of the above plugin options are optional. After integrating this plugin, running webpack --watch will start the application in watch mode, and reload it whenever there are code changes.

Readme

Keywords

none

Package Sidebar

Install

npm i @microbackend/plugin-hmr

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.65 kB

Total Files

12

Last publish

Collaborators

  • protoman92
  • haipham