Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files not being updated using addPassthroughCopy #2888

Closed
joelanman opened this issue Mar 29, 2023 · 2 comments
Closed

files not being updated using addPassthroughCopy #2888

joelanman opened this issue Mar 29, 2023 · 2 comments
Labels
education feature: 🗄 passthrough copy Related to the passthrough file copy feature

Comments

@joelanman
Copy link

Operating system

macOS 13.2.1

Eleventy

2.0.0

Describe the bug

Thanks for all your work!

Maybe I'm misusing or misunderstood, but having problems with addPassthroughCopy. I have it set to assets. When I renamed an image file, it didn't get copied until I restarted 11ty serve command, and the old file remained in the _site folder.

Reproduction steps

Using this config:

eleventyConfig.addPassthroughCopy("assets");
  1. Add file /assets/images/cookies sticker - cloud convert.svg
  2. Rename that file to cookies.svg

The file in _site was not renamed. When I stopped and started npx @11ty/eleventy --serve, the new file appeared but the old file remained

Expected behavior

The file is renamed in _site without having to restart npx @11ty/eleventy --serve

Reproduction URL

No response

Screenshots

No response

@zachleat
Copy link
Member

Related to #2798 and #19

That said I would expect a new cookies.svg to trigger a build if its matches a passthrough copy location. I ran a quick test and verified in a simple project that this behavior does work, so there might be another circumstance happening here. Can you run Debug mode and provide the Watching for changes to: line?

https://www.11ty.dev/docs/debugging/

Mine looked like:

  Eleventy Watching for changes to: [ './package.json', './**/*.{liquid,ejs,md,hbs,mustache,haml,pug,njk,html,11ty.js,11ty.cjs}', './assets/**', './_includes/**', './_data/**', './.gitignore', './.eleventyignore', './.eleventy.js', './eleventy.config.js', './eleventy.config.cjs', './**/*.{json,11tydata.cjs,11tydata.js}' ] +5ms
  Eleventy Ignoring watcher changes to: [ '_site/**', './**/node_modules/**', './.git/**' ] +0ms

@zachleat zachleat added education feature: 🗄 passthrough copy Related to the passthrough file copy feature and removed needs-triage labels Apr 19, 2023
@joelanman
Copy link
Author

Thanks! I just tried again and couldn't replicate, sorry about that. I'll close this and keep an eye on if it happens again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
education feature: 🗄 passthrough copy Related to the passthrough file copy feature
Projects
None yet
Development

No branches or pull requests

2 participants