@microbackend/plugin-hmr
v1.0.1
Published
Micro-backend hot-module-reload plugin
Downloads
3
Readme
@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.