
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
rollup-plugin-copy-watch
Advanced tools
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.
# yarn
yarn add rollup-plugin-copy-watch -D
# npm
npm install rollup-plugin-copy-watch -D
// rollup.config.js
import copy from 'rollup-plugin-copy-watch'
export default {
input: 'src/index.js',
output: {
file: 'dist/app.js',
format: 'cjs'
},
plugins: [
copy({
// the watch option is passed directly to Chokidar, so it can be a file,
// dir, array or glob(s)
watch: 'static',
targets: [
{ src: 'src/index.html', dest: 'dist/public' },
{ src: ['assets/fonts/arial.woff', 'assets/fonts/arial.woff2'], dest: 'dist/public/fonts' },
{ src: 'assets/images/**/*', dest: 'dist/public/images' }
]
})
]
}
The configuration is exactly the same as rollup-plugin-copy, with just one option added. Refer to the original plugin for all other options.
Type: string|string[] Default: null
Paths to files, dirs to be watched recursively, or glob patterns.
This is passed directly to chokidar.watch.
rollup-plugin-copy: Cédric Meuter
MIT
FAQs
Copy files and folders using Rollup
The npm package rollup-plugin-copy-watch receives a total of 525 weekly downloads. As such, rollup-plugin-copy-watch popularity was classified as not popular.
We found that rollup-plugin-copy-watch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.