Livereload for Webpack 5+
npm install @kooneko/livereload-webpack-plugin
This plugin for Webpack is based from statianzo's plugin : webpack-livereload-plugin
This plugin is compatible wih Webpack 4 & Webpack 5
Install the package
``sh`
npm install --save-dev @kooneko/livereload-webpack-plugin
Add the plugin to your webpack config
`js
// webpack.config.js
var LiveReloadWebpackPlugin = require('@kooneko/livereload-webpack-plugin');
module.exports = {
plugins: [
new LiveReloadWebpackPlugin(options)
]
}
`
Add a script tag to your page pointed at the livereload server
`html`
| Option | Default | Description |
| --- | --- | --- |
| protocol | protocol of the page, either http or https | Protocol for livereload