# rollup-plugin-watcher

> Dynamically add additional files for watching

Latest version **1.0.1** (published 2021-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-watcher
pnpm add rollup-plugin-watcher
yarn add rollup-plugin-watcher
bun add rollup-plugin-watcher
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-10-04 |
| First published | 2021-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vladimir Iliev |
| Maintainers | vldiliev |
| Keywords | rollup, watch, scss, partials, plugin |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-watcher
- Repository: https://github.com/vladiiliev/rollup-plugin-watcher
- Homepage: https://github.com/vladiiliev/rollup-plugin-watcher#readme
- Issues: https://github.com/vladiiliev/rollup-plugin-watcher/issues
- npm.io page: https://npm.io/package/rollup-plugin-watcher

## 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.1 (latest) — 2021-10-04
- 1.0.0 — 2021-10-04

## README

# rollup-plugin-watcher

Dynamically add additional files for watching.

One of the most common issues that can be covered with this plugin is watching scss partials (added with @import), which are not automatically added by rollup.js to the list of watched files.

## Install

```console
npm install --save-dev rollup-plugin-watcher
```

```console
yarn add -D rollup-plugin-watcher
```

## Usage

Create a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:

```javascript
import watcher from 'rollup-plugin-watcher';

export default {
    plugins: [watcher(['src/**/*.scss'])]
};
```

## Options

### `globs`

Type: `String[]` <br>
Default: ``

Add an array of files that you want to add to the list of files to watch. The plugin uses [glob](https://www.npmjs.com/package/glob) to match files. There are no restrictions on the extensions used, you can use whatever you need.

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