rollup-plugin-copy-watch
A fork of rollup-plugin-copy with an additional watch
to watch other sources than just Rollup's bundle content (e.g. your static assets directory).
Copy files and folders, with glob support.
Installation
# yarn yarn add rollup-plugin-copy-watch -D # npm npm install rollup-plugin-copy-watch -D
Usage
// rollup.config.js input: 'src/index.js' output: file: 'dist/app.js' format: 'cjs' plugins:
Configuration
The configuration is exactly the same as rollup-plugin-copy, with just one option added. Refer to the original plugin for all other options.
watch
Type: string|string[]
Default: null
Paths to files, dirs to be watched recursively, or glob patterns.
This is passed directly to chokidar.watch
.
Original Author
rollup-plugin-copy
: Cédric Meuter
License
MIT