1.0.1 • Published 3 years ago

rollup-plugin-watcher v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.

1.0.1

3 years ago

1.0.0

3 years ago