Replies: 2 comments 2 replies
-
Alright I got the plugin working with a small tweak to the regex. Now the question is, would it be worth merging this new regex? Or exposing the class splitting regex from sorting.js as an option so people can use their own regex? In the meanwhile I will just fork this plugin so vite users can start using grouping! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! According to your PR https://github.com/tailwindlabs/prettier-plugin-tailwindcss/pull/227/files, I made modifications using |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, @rschristian has created a wonderful plugin which solves the grouping issue with no downsides. Would it be possible to get the prettier plugin to work with it?
Best case sort the groups, worst case don't do anything? Currently it boots all classes but two out of the group. I would be willing to work on it if this is something that would be accepted.
currently it changes
hover:(bg-red gap-2 mt-9 p-64)
->hover:(bg-red p-64) mt-9 gap-2
Beta Was this translation helpful? Give feedback.
All reactions