1.0.2 • Published 1 year ago
rollup-plugin-watch-external v1.0.2
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
License
MIT