nuxt-modules / tailwindcss

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

Compatibility with Nuxt 4 App Folder Structure #874

Open adamkasper opened 3 months ago

adamkasper commented 3 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 4 hours 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 hour ago

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