Comments (6)
A workaround is to make a change to one of the files that is watched, which will trigger the copy without having to kill the watch process.
from rollup-plugin-copy.
To others desperately searching for a solution to this, there's a fork here that worked for me:
https://www.npmjs.com/package/@guanghechen/rollup-plugin-copy
There is an open PR #42 from the author as well:
A comment on that PR says to use watch: { exclude: 'build/**' }
- I didn't need to do that, it just worked.
from rollup-plugin-copy.
@mindplay-dk That exclude configuration is only needed when you try to watch files in the build
folder (often named dist
). As I already commented in the PR, watching files in the build output doesn't make sense anyway so this setting is not needed at all. Sorry for the confusion.
from rollup-plugin-copy.
Any update about the PR @vladshcherbin?
from rollup-plugin-copy.
Any update on this?
from rollup-plugin-copy.
I was not sure if it is supposed to watch the files or not because there is this copyOnce
option.
from rollup-plugin-copy.
Related Issues (20)
- folder hierarchy not preserved (again) HOT 2
- I wonder if it is possible not to copy a file when it conforms to a set of regular expressions HOT 7
- Is there the ability to transform the files within the input directory? HOT 1
- Transform doesn't work without Rename HOT 1
- Transform only works on first instance of file HOT 1
- Promise support
- Negated patterns doesn't work correctly. HOT 1
- Has anyone been able to get this working in Sveltekit yet? HOT 3
- copy folder structure with flatten=false and ignore first levels HOT 3
- No error if target file does not exist
- The filter won't take effect when file transformed
- (copy plugin) Error: ENOENT: no such file or directory, chmod <filename> HOT 7
- copy occurs before generated bundle write when multi entry HOT 2
- unable to copy dot files from a directory ie. .htaccess HOT 1
- Symlinks HOT 2
- Move `@types/*` to `devDependencies`. HOT 3
- Create symlink instead of copy?
- Not working well in a Laravel project using Vite HOT 2
- The files in src cannot be obtained under the windows system HOT 3
- Rename does not let me alter the folder to which the file is written. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollup-plugin-copy.