@wroud/vite-plugin-ssg
Version:
A Vite plugin for static site generation (SSG) with React. Renders React applications to static HTML for faster load times and improved SEO.
14 lines • 405 B
JavaScript
export async function resolveHtmlTags(html, ctx, preHooks, normalHooks, postHooks) {
let tags = [];
for (const hook of [...preHooks, ...normalHooks, ...postHooks]) {
const res = await hook(html, ctx);
if (!res) {
continue;
}
if (Array.isArray(res)) {
tags = res;
}
}
return tags;
}
//# sourceMappingURL=resolveHtmlTags.js.map