rollup-plugin-copy
rollup-plugin-copy copied to clipboard
Copy files and folders using Rollup
When running rollup in watch mode, if a change is made to a copied asset, the modified asset should be copied again to the target directory. Right now one has...
E.g. ``` copy({ targets: [ { dest: 'lib/', src: 'boguspath/index.html' }, ], }), ``` Assuming boguspath doesn't exist, I get no error (or warning) when building. This should be standard...
I need to copy a folder structure (so flatten=false is necessary), but do not want to have the full path in destination. Example: ``` targets:[{ src: 'folder1/folder2', dest: 'destfolder' }];...
* Pass additional filePath info into transform func * Add watchStart feature, trigger recopy when files changed
rollup: v2.50.5 rollup-plugin-copy: v3.4.0 ---- code: ```typescript copy({ targets: [ { src: [`${srcDir}/images/**/*`, `!**/*.md`], dest: `${distDir}/images`, }, ], }), ``` `${srcDir}/images`: ``` images ├README.md └ test ├ README.md └ test...
Would it be possible for `src` to accept `string | readonly string[] | Promise`? I'm trying to use copy with [npm-packlist](https://www.npmjs.com/package/npm-packlist)
I have a file with multiple instances of the same placeholder text but only the first is transformed, chaining multiple instances fixes it but I wonder if it's possible to...
Currently I need to prepend every `dest` field with `dist/` folder, so I do duplicate where I plan to output files in several places (`dest` fields and output options of...
Hi. Thanks for all the hard work on this project! Heads up! I tried to use the `transform` capability. Didn't quite work unless I also use `rename`. In case it...
Hey vlad, do you have any interest in moving this plugin to https://github.com/rollup/plugins? It fits what we look for in a core plugin. We'd be happy to add you to...