shrynx/rollup-plugin-cpy

Add possibility to copy only on start

vladshcherbin opened this issue · 2 comments

It would be nice to have an option to copy on start or on write. It's useful in watch mode when you don't want to copy files every time you bundle changes. The option can be named watch or smth.

Related: I'm using experimentalCodeSplitting to output three chunks, and copy runs for each bundle. It would be helpful if it only ran once!

Another scenario: I need to replace some variables after copying is done from src folder to dist folder. I can't change my src folder every time.