You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use object notation is not supported by the nuxt module, since it expects an array and will crash if being used like in the tailwind docs code snippet above.
Describe the solution you'd like
It would be great if we could also use the object notation for the content configuration in the tailwind config file, so we can enable relative paths.
The text was updated successfully, but these errors were encountered:
Thank you for opening an issue. This came to my notice as well and I'll look into having this implemented soon (unless you're willing to make a PR 🙂).
I do want to ask - in this case, when using object configuration, would you want the default paths to merge with content.files or completely override (which I can see people leaning for)? Also on Tailwind's docs, they mention "This will likely become the default behavior in the next major version of the framework", but this merely be a consideration I think.
Hmm.. Tailwind is mentioning that it will likely become the default behavior, however, the exact details seem to be unclear (most likely v4). I did just find the following merged issue in their repository: tailwindlabs/tailwindcss#9396
It seems to have the following flag: future.relativeContentPathsByDefault this might be a workaround that can be used in the meantime.
Is your feature request related to a problem? Please describe.
In one of our projects we would like to be able to use relative paths, within, the tailwind content configuration see: https://tailwindcss.com/docs/content-configuration#using-relative-paths
Trying to use object notation is not supported by the nuxt module, since it expects an array and will crash if being used like in the tailwind docs code snippet above.
Describe the solution you'd like
It would be great if we could also use the object notation for the content configuration in the tailwind config file, so we can enable relative paths.
The text was updated successfully, but these errors were encountered: