nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt
https://tailwindcss.nuxtjs.org
MIT License
1.69k stars 183 forks source link

Compatibility with Nuxt 4 App Folder Structure #874

Closed adamkasper closed 1 month ago

adamkasper commented 4 months ago

Environment

Reproduction

Using @nuxtjs/tailwindcss together with the new Nuxt 4 app folder structure

Describe the bug

The { content: [] } support in the tailwind.config file is missing for the new Nuxt 4 app folder structure. It needs to account for the new /app prefix.

Additional context

No response

Logs

No response

ineshbose commented 1 month ago

It would seem that in the latest versions of nuxt and @nuxt/kit, we should already have support for it (as the files get resolved to the appDir) - could you confirm?

nikolasdas commented 1 month ago

I'm using the nuxt 4 folder structure and for me everything works as expected :)