nuxt-modules / tailwindcss

Tailwind CSS module for Nuxt

Home Page:https://tailwindcss.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

call `tailwindcss:config` hook after all modules are initialised

danielroe opened this issue · comments

At the moment, tailwindcss:config is called synchronously when this module runs, meaning other modules which hope to use tailwindcss or modify its configuration must be registered before it.

However, dependencies between modules aren't ideal. Instead, we should register a hook in modules:done that finally calls tailwindcss:config. Alternatively, we could also call tailwindcss:config directly in getContents of a template.

I'm looking to address this in #818 as that is a complete rewrite of loading the config. 👍