Livereload for webpack
npm install webpack-livereload-plugin[![CI][ci]][ci-url]
[![node][node]][node-url]
LiveReload when running webpack --watch
Install the package
``sh`
npm install --save-dev webpack-livereload-plugin
Add the plugin to your webpack config
`js
// webpack.config.js
var LiveReloadPlugin = require('webpack-livereload-plugin');
module.exports = {
plugins: [
new LiveReloadPlugin(options)
]
}
`
Add a script tag to your page pointed at the livereload server
`html`
- protocol - (Default: protocol of the page, either http or https) Protocol for livereload