Rollup plugin that copies files and folders during build with glob pattern support and optional renaming. Current stable version is 0.4.1, released with infrequent updates. It is a lightweight alternative to rollup-plugin-copy, offering glob patterns and rename support out of the box, with minimal configuration. It supports Node >=12 and integrates with Rollup's watch mode for file copying on rebuild.
npm install rollup-plugin-copy-globVerified import paths — ran on the pinned version, not inferred.
Shows basic setup: copy HTML/CSS files with glob, rename a config file, and copy images recursively with verbose logging and watch mode.
Use a separate cleanup plugin like rollup-plugin-delete or manually clean dist before build.
Remove the 'watch' option; rely on Rollup's --watch flag.
Update your plugin config to use array of objects with 'files' and 'dest' properties.
Create the destination directory manually or use a separate mkdirp step.
Use `import copy from 'rollup-plugin-copy-glob'` (default import).
Verify the path and pattern; check if files exist relative to project root.
Create the destination directory before running Rollup, or use a plugin that auto-creates directories.
No dependency data recorded yet.