UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

17 lines (16 loc) 594 B
import { installClientHead } from "../install-client-head.js"; import { defineNuxtPlugin } from "#app/nuxt"; import { createHead } from "@unhead/vue/client"; import { createStreamableHead } from "@unhead/vue/stream/client"; import unheadOptions from "#build/unhead-options.mjs"; //#region src/head/runtime/plugins/unhead-stream.client.ts const plugin = defineNuxtPlugin({ name: "nuxt:head", enforce: "pre", setup(nuxtApp) { const head = createStreamableHead(unheadOptions) || createHead(unheadOptions); installClientHead(nuxtApp, head); } }); //#endregion export { plugin as default };