-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.ts
More file actions
39 lines (32 loc) · 677 Bytes
/
module.ts
File metadata and controls
39 lines (32 loc) · 677 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
34
35
36
37
38
39
import {
defineNuxtModule,
createResolver,
addComponentsDir,
addPlugin,
} from '@nuxt/kit'
import { registerTailwindPath } from '@owdproject/core'
export default defineNuxtModule({
meta: {
name: 'owd-app-debug',
},
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}'),
)
}
},
})