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

11 lines
176 B
TypeScript
Raw Normal View History

2022-03-08 18:03:21 +00:00
export default defineNuxtPlugin(() => {
useHead({
titleTemplate: '%s - Fixture'
})
2022-03-08 18:03:21 +00:00
return {
provide: {
myPlugin: () => 'Injected by my-plugin'
}
}
})