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 with symLinks not working #530
Comments
Ah interesting. Eleventy uses https://www.npmjs.com/package/recursive-copy#usage This will require exposing an option to enable this (or maybe configure all of the recursive copy options, not sure). |
This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open. View the enhancement backlog here. Don’t forget to upvote the top comment with 👍! |
this would be a nice feature. is there any sort of hack/workaround I could use in the meantime? |
still an issue. i use |
An easy workaround, add this to const TemplatePassthrough = require("@11ty/eleventy/src/TemplatePassthrough");
const origCopy = TemplatePassthrough.prototype.copy;
TemplatePassthrough.prototype.copy = function (src, dest, copyOptions) {
return origCopy.bind(this)(src, dest, { ...copyOptions, expand: true });
}; |
That looks very susceptible to code rot. |
I'm very open to a better solution, please let me know if you have one! |
see #1686 |
Ah, well, naturally, but until that gets reviewed and merged, I think we're stuck with workarounds like the one I posted. |
to solve this hostage situation, someone invented patch-package sample use in my alchi-book/patches |
PR is merged, will ship with 2.0.0-canary.12 Thanks! |
I have a submodule which contains templates, css and assets shared by multiple 11ty projects. I symlink the assets I need from the submodule into the assets directory in the root. This assets folder should be copied to _site with
addPassthroughCopy('assets')
in my .eleventy.js file. Note: I do not use an .eleventyignore file and the sass from the submodule is processed without issues.Unfortunately, only the files in assets which are not symlinks are copied to the _site directory. How can I tell eleventy to also passthrough my symlinked directories?
I use eleventy v0.7.1
The text was updated successfully, but these errors were encountered: