Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a tag to render vite assets #55

Open
AngusMorton opened this issue Apr 19, 2023 · 0 comments
Open

Expose a tag to render vite assets #55

AngusMorton opened this issue Apr 19, 2023 · 0 comments

Comments

@AngusMorton
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant