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

addPassthroughCopy: expose copyOptions, allow to follow symlinks #1686

Merged
merged 1 commit into from Jun 24, 2022

Conversation

milahu
Copy link
Contributor

@milahu milahu commented Mar 12, 2021

fix issue #530

allow to pass options directly to recursive-copy

for example, to follow symlinks, set { expand: true }

eleventyConfig.addPassthroughCopy("node_modules/@fontsource/noto-sans", { expand: true });

eleventyConfig.addPassthroughCopy({
  "node_modules/@fontsource/noto-sans": "css/noto-sans",
  "node_modules/@fontsource/noto-mono": "css/noto-mono",
}, { expand: true });

todo: add docs to https://www.11ty.dev/docs/copy/

@milahu
Copy link
Contributor Author

milahu commented Mar 17, 2021

push

@milahu
Copy link
Contributor Author

milahu commented May 7, 2021

push

@zachleat zachleat added the feature: 🗄 passthrough copy Related to the passthrough file copy feature label Jun 24, 2022
@zachleat zachleat merged commit 81f765e into 11ty:master Jun 24, 2022
zachleat added a commit that referenced this pull request Jun 24, 2022
@zachleat
Copy link
Member

Shipping with 2.0.0-canary.12

@zachleat zachleat added this to the Eleventy 2.0.0 milestone Jun 24, 2022
zachleat added a commit to 11ty/11ty-website that referenced this pull request Jun 24, 2022
@zachleat
Copy link
Member

Docs building to https://www.11ty.dev/docs/copy/#advanced-options

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

Successfully merging this pull request may close these issues.

None yet

2 participants