Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pngwn/rollup-plugin-copy-assets

Simple rollup plugin to copy assets
https://github.com/pngwn/rollup-plugin-copy-assets

Last synced: about 1 month ago
JSON representation

Simple rollup plugin to copy assets

Awesome Lists containing this project

README

        

# rollup-copy-plugin

Simple rollup plugin to copy files.

## Usage

**NB:** This plugin only copies files once when rollup start, any later changes will not be copied (before you start rollup again).

```js
import copyPlugin from 'rollup-copy-plugin';

export default {
// ...
plugins: [
// ...
copyPlugin({
'./src/test1.txt': './dist/test1.txt',
'./src/test2.txt': './dist/test2.txt',
}),
// ...
],
// ...
};
```