You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran touch assets/{1..1000}.jpg so I have 1001 [invalid] image files locally.
First time I run the code above, everything works and I see this in my console:
Copied 1001 files
Now, if I build my site again and run the same code, I get the following error (since the "www/assets" folder exists and has my previous images):
If I set { overwrite: true } it works every time, but is presumably recopying over 1001 unchanged files on each build. Is there an option for "copy the image if it doesn't exist, but ignore it if it does"?
UPDATE: I guess I'm asking for a feature/flag similar to merge-dir's conflict resolution of "overwrite"-vs-"skip"-vs-"ask" (but without "ask").
The text was updated successfully, but these errors were encountered:
I have the following code, but not sure I 100% understand the rules of
overwrite
:I ran touch assets/{1..1000}.jpg so I have 1001 [invalid] image files locally.
First time I run the code above, everything works and I see this in my console:
Now, if I build my site again and run the same code, I get the following error (since the "www/assets" folder exists and has my previous images):
If I set
{ overwrite: true }
it works every time, but is presumably recopying over 1001 unchanged files on each build. Is there an option for "copy the image if it doesn't exist, but ignore it if it does"?UPDATE: I guess I'm asking for a feature/flag similar to
merge-dir
's conflict resolution of "overwrite"-vs-"skip"-vs-"ask" (but without "ask").The text was updated successfully, but these errors were encountered: