Nuxt/test/fixtures/basic/plugins/my-plugin.ts

11 lines
176 B
TypeScript

export default defineNuxtPlugin(() => {
useHead({
titleTemplate: '%s - Fixture'
})
return {
provide: {
myPlugin: () => 'Injected by my-plugin'
}
}
})