vikejs / vike

🔨 Flexible, lean, community-driven, dependable, fast Vite-based frontend framework.
https://vike.dev
MIT License
4.4k stars 353 forks source link

New hook `onRenderHtmlEnd()` #1979

Open brillout opened 4 days ago

brillout commented 4 days ago

Description

Called after the HTML is fully generated (after Vike injects assets).

Use case: HTML transformers, such as critical CSS inlining https://github.com/vikejs/vike/discussions/1975.

Workaround in the meantime:

(Note to maintainers: ideally the name should be swapped with the already existing onAfterRenderHtml().)