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.

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