-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmodule.ts
More file actions
33 lines (26 loc) · 622 Bytes
/
module.ts
File metadata and controls
33 lines (26 loc) · 622 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import {
defineNuxtModule,
createResolver,
addComponentsDir,
addPlugin,
} from '@nuxt/kit'
import { registerTailwindPath } from '@owdproject/core'
export default defineNuxtModule({
meta: {
name: 'owd-app-template',
},
async setup(options, nuxt) {
const { resolve } = createResolver(import.meta.url)
// add components
addComponentsDir({
path: resolve('./runtime/components'),
})
// add plugins
addPlugin(resolve('./runtime/plugin'))
// configure tailwind
registerTailwindPath(
nuxt,
resolve('./runtime/components/**/*.{vue,mjs,ts}'),
)
},
})