Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l-chris/html-webpack-reload-plugin
reload your browser when your html changes, works with html-webpack-plugin
https://github.com/l-chris/html-webpack-reload-plugin
Last synced: about 2 months ago
JSON representation
reload your browser when your html changes, works with html-webpack-plugin
- Host: GitHub
- URL: https://github.com/l-chris/html-webpack-reload-plugin
- Owner: L-Chris
- License: mit
- Created: 2018-08-05T06:54:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-21T09:09:09.000Z (almost 4 years ago)
- Last Synced: 2024-11-13T18:54:02.408Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html-webpack-reload-plugin
Automatically refresh your browser whenever you make changes to templates consumed by html-webpack-plugin.
It should only be used in development.
v1 support webpack3
v2 support webpack4
Inspire by reload-html-webpack-plugin.## Install
```
npm i html-webpack-reload-plugin -D
yarn add html-webpack-reload-plugin -D
```## Usage
**webpack.config.js**
```
const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackReloadPlugin = require('html-webpack-reload-plugin')module.exports = {
plugins: [
new HtmlWebpackPlugin(),
new HtmlWebpackReloadPlugin()
]
}
```