fix: components dir resolution

This commit is contained in:
Benjamin Canac
2021-11-18 15:44:07 +01:00
parent 6d99886483
commit 500b4d6423

View File

@@ -89,7 +89,7 @@ export default defineNuxtModule({
await installModule(nuxt, { src: '@unocss/nuxt', options }) await installModule(nuxt, { src: '@unocss/nuxt', options })
const componentsRoot = resolve(__dirname, '../src/components') const componentsRoot = resolve(__dirname, './components')
nuxt.hook('components:dirs', (dirs) => { nuxt.hook('components:dirs', (dirs) => {
dirs.push({ dirs.push({