rollup-plugin-cpy
Rollup plugin to easily copy files and folders.
Installation
- yarn
yarn add -D rollup-plugin-cpy
- npm
npm i -D rollup-plugin-cpy
Usage
This plugin uses cpy by @sindresorhus.
All the options map to the cpy
package apart from verbose
.
It takes a config object
files: string | glob | Array<string & glob> dest: string options: verbose: boolean ...restOptions
The verbose option if set to true print out each file copying log on console.
restOptions
are same as options passed to cpy
... plugins: ... ...
It can also take an array of above mentioned config object
... plugins: ... ...
License
This project is licensed under the MIT license.