Skip to content

Commit c8938cc

Browse files
committed
fix(tailwind): fix tailwind path
1 parent 5fcc209 commit c8938cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { withTrailingSlash } from 'ufo'
99
import type { ViteDevServer } from 'vite'
1010
import { defu } from 'defu'
1111
import type { Nitro } from 'nitropack'
12+
import { join } from 'pathe'
1213
import { generateTokens } from './generate'
1314
import { logger, name, version, NuxtLayer, resolveTokens, MODULE_DEFAULTS, createTokensDir } from './utils'
1415
import type { NuxtDesignTokens, ModuleOptions } from './index'
@@ -208,7 +209,8 @@ export default defineNuxtModule<ModuleOptions>({
208209
// @ts-ignore - Module might not exist
209210
nuxt.hook('tailwindcss:config', (tailwindConfig) => {
210211
tailwindConfig.content = tailwindConfig.content ?? []
211-
tailwindConfig.content.push(`${tokensDir}/index.ts`)
212+
tailwindConfig.content.push(join(tokensDir, 'index.ts'))
213+
console.log(tailwindConfig)
212214
})
213215
}
214216
})

0 commit comments

Comments
 (0)