Skip to content

Expose a tag to render vite assets #55

@AngusMorton

Description

@AngusMorton

Description

Sometimes it's worth customising where the asset tags are rendered in the head if you need to wait for an API response to render SEO meta tags and want the client to start loading assets. The webpack bundler integration seems to support this through the <webpack-assets> tag, but the Vite integration doesn't have a similar public API.

It's currently possible using an internal API, out.global.___viteRenderAssets, but we should consider exposing a tag that behaves similarly and is documented.

Possible Implementation & Open Questions

Expose a <vite-assets> tag that causes assets to be rendered in its place instead of at the end of the head.

Is this something you're interested in working on?

I'm happy to try this if someone can point me in the right direction!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions