-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable c12 for loading config and provide defineConfig
#913
base: main
Are you sure you want to change the base?
Conversation
β Deploy Preview for nuxt-tailwindcss ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
PR Summary
|
@@ -72,21 +76,22 @@ export interface ModuleOptions { | |||
/** | |||
* The path of the Tailwind configuration file. The extension can be omitted, in which case it will try to find a `.js`, `.cjs`, `.mjs`, or `.ts` file. | |||
* | |||
* @default 'tailwind.config' | |||
* @default [] | |||
* @deprecated provide string in `config` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check with atinux on this
|
docs and deprecation tests these will be in a separate PR |
const populateMap = (obj: any, path: string[] = [], level = 1) => { | ||
const getTWConfig = ( | ||
objPath: string[] = [], | ||
twConfig = twCtx.use().config, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HMR with new configs is likely not working. investigate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is working here, but its the loadConfig
in builder:watch
hook
π Linked issue
resolves #808 and partly #842
should also resolve #902
β Type of change
π Description
Play: https://stackblitz.com/github/nuxt-modules/tailwindcss/tree/c12-refactor