Open Trapfether opened 12 months ago
At the moment does not seem to work: https://github.com/Trapfether/tailwind-raw-reorder/issues/4
The issue is being addressed over on the repo Trapfether/tailwind-raw-reorder#4
For those having an issue in the meantime, please make sure to include a tailwind config file at the base directory of your project.
thank you so much!
I found this repo as I was looking for a sorting solution that did not involve using prettier on my code base that predates prettier and uses a old format guide.
I was excited to try it out and quickly realized that is simply does not support much of what Tailwind now does. The last updates were long enough ago that even the default class names included as part of this extension are not correct anymore. Additionally, the methodology this extension was using of simply listing all the classes in a large list of their predefined order was insufficient for most codebases with tailwinds new features.
So I have forked this extension and updated it to work in pretty much the same way as the prettier extension, using the project's local tailwind installation and config to generate the proper sorting including all variants.
If you would like to try out the updated extension, it is here https://marketplace.visualstudio.com/items?itemName=Trapfether.tailwind-raw-reorder