rollup-plugin-watcher
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

npm install --save-dev rollup-plugin-watcher
yarn add -D rollup-plugin-watcher

Usage

Create a rollup.config.js configuration file and import the plugin:

import watcher from 'rollup-plugin-watcher';

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

Options

globs

Type: String[]
Default: ``

Add an array of files that you want to add to the list of files to watch. The plugin uses glob to match files. There are no restrictions on the extensions used, you can use whatever you need.

Package Sidebar

Install

npm i rollup-plugin-watcher

Weekly Downloads

77

Version

1.0.1

License

MIT

Unpacked Size

7.6 kB

Total Files

10

Last publish

Collaborators

  • vldiliev