Skip to content

Pass through copy of asset directory #1540

Closed
@rabbaniyon

Description

@rabbaniyon

A blog in posts/first-blog.md contains an image in posts/first-blog.assets/image.png.

By using:

module.exports = function(eleventyConfig) {
 // ...
 eleventyConfig.addPassthroughCopy("posts/**/**/*.png");
}

the directory posts/first-blog/first-blog.assets is copied to _site/posts/first-blog.assets.

Question: how can I set a rule so that it is copied to _site/posts/first-blog/first-blog.assets?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions