Skip to content

[backend-integration] processing assets not directly used by Vite #8373

@lubomirblazekcz

Description

@lubomirblazekcz

Clear and concise description of the problem

If static assets are referenced in templates on backend (.twig, .blade, .latte, etc.), Vite will not process them and they are not included in manifest file.

A way how to get around that is described here #2375 (comment)

Suggested solution

rollupOptions.input should accept any kind of file type, including png, jpg, svg, etc and treat them as assets. This is not currently possible and are generated as empty chunks.

Generated an empty chunk: "fragment.svg"
Generated an empty chunk: "icon.png"

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions