# extra-watch-webpack-plugin

> extra-watch-webpack-plugin would help you to attach extra files or dirs to webpack's watch system

Latest version **1.0.3** (published 2018-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install extra-watch-webpack-plugin
pnpm add extra-watch-webpack-plugin
yarn add extra-watch-webpack-plugin
bun add extra-watch-webpack-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.0.3 |
| Published | 2018-04-27 |
| First published | 2017-10-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/extra-watch-webpack-plugin) |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | pigcan |
| Maintainers | pigcan |
| Keywords | webpack, webpack-plugin, watch |

## Links

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

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [is-glob](https://npm.io/package/is-glob.md) ^4.0.0
- [lodash.uniq](https://npm.io/package/lodash.uniq.md) ^4.5.0
- [schema-utils](https://npm.io/package/schema-utils.md) ^0.4.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-04-27
- 1.0.2 — 2018-04-26
- 1.0.1 — 2018-04-03
- 1.0.0 — 2018-04-02
- 0.3.0 — 2018-02-08
- 0.2.0 — 2017-10-12
- 0.1.0 — 2017-10-12

## README

[![NPM version](https://img.shields.io/npm/v/extra-watch-webpack-plugin.svg?style=flat)](https://npmjs.org/package/extra-watch-webpack-plugin) [![Build Status](https://travis-ci.org/pigcan/extra-watch-webpack-plugin.svg?branch=master)](https://travis-ci.org/pigcan/extra-watch-webpack-plugin) [![Build status](https://ci.appveyor.com/api/projects/status/2wjjvxjdxb2p18iq/branch/master?svg=true)](https://ci.appveyor.com/project/pigcan/extra-watch-webpack-plugin/branch/master) [![Coverage Status](https://coveralls.io/repos/github/pigcan/extra-watch-webpack-plugin/badge.svg?branch=master)](https://coveralls.io/github/pigcan/extra-watch-webpack-plugin?branch=master) [![Dependency Status](https://david-dm.org/pigcan/extra-watch-webpack-plugin.svg)](https://david-dm.org/pigcan/extra-watch-webpack-plugin) [![Greenkeeper badge](https://badges.greenkeeper.io/pigcan/extra-watch-webpack-plugin.svg)](https://greenkeeper.io/)


<div align="center">
  <a href="https://github.com/webpack/webpack">
    <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg">
  </a>
  <h1>extra watch webpack plugin</h1>
  <p>extra-watch-webpack-plugin would help you to attach extra files or dirs to webpack's watch system</p>
  <p>support webpack@1,2,3,4</p>
</div>

<h2 align="center">Install</h2>

```sh
npm install --save extra-watch-webpack-plugin
```

<h2 align="center">Options</h2>

- `files`: `string` (absolute path or glob pattern) or `array`, default `[]`, attach extra files to webpack's watch system
- `dirs`: `string` or `array`, default `[]`, attach extra dirs to webpack's watch system

<h2 align="center">Usage</h2>

```js
// webpack.config.js
import ExtraWatchWebpackPlugin from 'extra-watch-webpack-plugin';
......
{
  plugins: [
    new ExtraWatchWebpackPlugin({
      files: [ 'path/to/file', 'src/**/*.json' ],
      dirs: [ 'path/to/dir' ],
    }),
  ],
}
```

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