-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Help: struggling to get Eleventy to work with my folder structure #494
Comments
Maybe related to #214 (comment) ? |
@Ryuno-Ki That’s what I was thinking but @eleven_ty on Twitter suggested it was achievable with currently available features. So I’m wondering how. I've been perusing the docs but maybe I missed something. |
@zachleat anything I missed? |
Currently you can't map that folder's contents to the compiled Hopefully we'll be able to do this with #214 (and gain even more control over passthroughs). It would sure come in handy in many cases. I'd suggest considering: (maybe these will spark some other ideas, too) A. Use an
|
I'd write it like this: const files = [
'src/fonts',
'src/img',
'src/favicon.ico',
'src/apple-touch-1.png',
'src/apple-touch-2.png',
'src/apple-touch-3.png'
];
files.forEach((file) => eleventyConfig.addPassthroughCopy(file)); this way, you can apply some logic (e.g. |
Hey @blakewatson your second requirement there will be possible when @MadeByMike’s PR at #452 lands. I’m going to close this as a duplicate of #214 (which is the root issue that #452 solves). Please follow along and upvote there! Also thanks to everyone else for helping out here! |
I want a folder structure like this:
content
to be the input directory.assets
to_site/
.I’ve got number 1, but I can’t figure out number 2.
Given my current configuration:
I get this:
What can I do to get
src/assets/*
to copy to_site/*
?The text was updated successfully, but these errors were encountered: