# webpack-watch-files-plugin

> Webpack watch files

Latest version **1.2.1** (published 2022-03-14) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2022-03-14 |
| First published | 2017-11-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/webpack-watch-files-plugin) |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Florent Detry |
| Maintainers | florent |

## Links

- npm: https://www.npmjs.com/package/webpack-watch-files-plugin
- Repository: https://github.com/Fridus/webpack-watch-files-plugin
- Homepage: https://github.com/Fridus/webpack-watch-files-plugin#readme
- Issues: https://github.com/Fridus/webpack-watch-files-plugin/issues
- npm.io page: https://npm.io/package/webpack-watch-files-plugin

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21

## Recent versions

- 1.2.1 (latest) — 2022-03-14
- 1.2.0 — 2021-10-03
- 1.1.0 — 2020-08-31
- 1.0.3 — 2019-04-08
- 1.0.2 — 2018-04-17
- 1.0.1 — 2018-04-06
- 1.0.0 — 2017-11-08

## README

# webpack-watch-files-plugin

[![Build Status](https://travis-ci.org/Fridus/webpack-watch-files-plugin.svg?branch=master)](https://travis-ci.org/Fridus/webpack-watch-files-plugin)

Webpack watch additional files. This plugin can trigger a build when these files change.

The livereload will be triggered if you use it but does not work with HRM.

## Installation

```sh
npm i --save-dev webpack-watch-files-plugin
```

## Options

- `files` - (Default `[]`) Array of patterns
- `verbose` - (Default `false`) List files found

## Usage

```js
import WatchExternalFilesPlugin from 'webpack-watch-files-plugin'

const config = {
  // ... webpack config ...
  plugins: [
    // ....
    new WatchExternalFilesPlugin({
      files: [
        './src/**/*.js',
        '!./src/*.test.js'
      ]
    })
  ]
}
```

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