mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
chore: fix plugin import
This commit is contained in:
@@ -2,6 +2,7 @@ import { resolve, join } from 'pathe'
|
||||
import { defineNuxtModule, installModule, addPlugin, resolveModule } from '@nuxt/kit'
|
||||
import { colors } from '@unocss/preset-uno'
|
||||
import type { UnocssNuxtOptions } from '@unocss/nuxt'
|
||||
import { runtimeDir } from './dirs'
|
||||
|
||||
export default defineNuxtModule({
|
||||
name: '@nuxthq/ui',
|
||||
@@ -113,7 +114,7 @@ export default defineNuxtModule({
|
||||
|
||||
await installModule(nuxt, { src: '@unocss/nuxt', options })
|
||||
|
||||
addPlugin(resolveModule('./plugin', { paths: resolve(__dirname, 'runtime') }), { append: true })
|
||||
addPlugin(resolveModule('./plugin', { paths: runtimeDir }), { append: true })
|
||||
|
||||
const componentsDir = resolve(__dirname, 'components')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user