Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pngwn/rollup-plugin-copy-assets
- Owner: pngwn
- Created: 2019-04-01T10:50:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T10:57:11.000Z (over 5 years ago)
- Last Synced: 2024-04-26T02:04:43.105Z (8 months ago)
- Language: JavaScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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',
}),
// ...
],
// ...
};
```