# sr-webpack-watch-livereload-plugin

> Simple Webpack LiveReload watcher for files are out of loaders

Latest version **0.0.2** (published 2018-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install sr-webpack-watch-livereload-plugin
pnpm add sr-webpack-watch-livereload-plugin
yarn add sr-webpack-watch-livereload-plugin
bun add sr-webpack-watch-livereload-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-01-24 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Flynnlee |
| Maintainers | flynnlee |

## Links

- npm: https://www.npmjs.com/package/sr-webpack-watch-livereload-plugin
- npm.io page: https://npm.io/package/sr-webpack-watch-livereload-plugin

## Dependencies (1)

- [livereload](https://npm.io/package/livereload.md) ^0.4.1

## Recent versions

- 0.0.2 (latest) — 2018-01-24

## README

# webpack-watch-livereload-plugin

Use `webpack --watch` to start LiveReload server.

Straightforward LiveReload can't fully replace Webpack's neat Hot Reload
but it's very useful when you just need to reload browser when HTML changes.


## Installation

Install the package:

```
npm install --save-dev sr-webpack-watch-livereload-plugin
```

Add the plugin to your webpack config:

```js
// webpack.config.js
var WatchLiveReloadPlugin = require('webpack-watch-livereload-plugin');

module.exports = {
	entry: // ...
	output: // ...

	// ...

	plugins: [
		new WatchLiveReloadPlugin({
			files: [
				// Replace these globs with yours
				'./src/**/*.html',
				'./src/**/*.css',
				'./src/**/*.png',
				'./src/**/*.jpg',
				'./src/**/*.js',
			]
		}),
	]
}
```

Add a LiveReload script to your page pointed at the LiveReload server 

```html
<script src='//localhost:{port}/livereload.js'>
```


## Options

- `files` — path, array, glob or array of globs to watch
- `port` — port for the LiveReload server (35729 by default)


## Thanks

This plugin was inspired by [webpack-livereload-plugin](https://www.npmjs.com/package/webpack-livereload-plugin).

---
_Source: https://npm.io/package/sr-webpack-watch-livereload-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
