Skip to content

Vite clearing addPassthroughCopy files on production? #42

@bronze

Description

@bronze

Hi

I've been cracking my head on this one and would appreciate another view.
I have eleventyConfig.addPassthroughCopy('src/assets/images') set up because i want to use the images on my og:image tags.

However, when building for production, all my images vanish around the time we hit his part

vite v4.4.9 building for production...
transforming...
 282 modules transformed.
rendering chunks...
computing gzip size...

I've tried changing the name of the folder because I thought maybe it may have something to do with using the assets folder, but no deal.
Tried passing emptyOutDir: false, on viteOptions but also didn't solve.

Anyone else encountered this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions