Skip to content

Access build manifests without outputting files #20052

@jamesopstad

Description

@jamesopstad

Description

Currently, to access a build manifest for a given environment, a manifest file must be written to the file system. Now that Vite can output multiple environments as part of the build, it would be great if you could access the manifests of already built environments without having to read and write files.

Suggested solution

One option would be to populate an environment.manifest field once the given environment is built. This could then be accessed inside the new buildApp hook.

Alternative

No response

Additional context

Currently, frameworks often output a manifest file and then read it in order to move assets emitted in the SSR environment to the client bundle. This feature would remove the need to read and write files.

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions