1.0.2 • Published 1 year ago

rollup-plugin-watch-external v1.0.2

Weekly downloads
49
License
MIT
Repository
github
Last release
1 year ago

rollup-plugin-watch-external

A rollup plugin to add additional files to the rollup watch files list.

Installation

# yarn
yarn add -D rollup-plugin-watch-external

# npm
npm install rollup-plugin-watch-external --save-dev

Usage

// rollup.config.js
import { watchExternal } from "rollup-plugin-watch-external";

export default {
	input: "src/index.js",
	output: {
		file: "dist/bundle.js",
		format: "iife"
	},
	plugins: [
		watchExternal({
			entries: ["public/**.js"]
		})
	]
}

Configuration

The configuration options are:

entries

Type: Array | Default: []

An array of string glob patterns for files to watch.

Original Author

Arpit Chakladar

License

MIT

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

3 years ago