Simple Rollup.js plugin that copies desired files
npm install rollup-plugin-copier
In your rollup.config.js:
import copier from 'rollup-plugin-copier';
...
export default [
{
// some config
plugins: [
copier({
items: [
{
src: 'some/sample/source.file',
dest: 'will/be/copied.here'
}
]
})
]
}
];-
itemsRequired
Array of items that should be copied
Options for each item:
-
srcRequired
Source path
-
destRequired
Destination path
-
createPathOptional, Default
falseIf path for destination file doesn't exist - create it.
-
-
hookOnOptional, Default
buildEndWhich Rollup.js hook should be used.
-
verboseOptional, Default
false
- Marek Sierociński - marverix
See also the list of contributors who participated in this project.
This plugin is heavly inspired by rollup-plugin-copy (created by meuter).
This project is licensed under the ISC License - see the LICENSE file for details.