Ability to pass in Tailwind config object to build tailwind-merge
config object
#158
Unanswered
brandonmcconnell
asked this question in
Ideas
Replies: 1 comment 2 replies
-
Theoretically that would be possible, but there are a few challenges with that.
I think there might be a better way to derive the tailwind-merge config from the Tailwind config programmatically. Maybe there is a way to create a Tailwind plugin which could generate the tailwind-merge config code. Or I could write a CLI tool for the tailwind-merge codegen which could be added to the build script of the browser code. But keeping it at buildtime would solve the two points from above. Now the only question is when I'd have time for this. 😄 I can't give any promises for this unfortunately. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It'd be pretty sweet if there were a way to more simply pass our entire
tailwind.config.cjs
export object intotailwind-merge
config, maybe via a helper function that performs any needed transformations, in order to construct the extendedtailwind-merge
config.It'd be much easier for users to maintain a custom
tailwind-merge
config that way, I'd think.Beta Was this translation helpful? Give feedback.
All reactions