-
Notifications
You must be signed in to change notification settings - Fork 4.3k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Remove duplicate class names and spaces on sort #7559
Comments
I dig the idea of removing duplicate classes! 👍 However, Prettier should already take care of extra spaces. I just gave this a try: <!-- Before -->
<header class=" bg-grey-200 md:flex hidden ">
<!-- After -->
<header class="hidden bg-grey-200 md:flex"> |
Hmm, just realizing that while it does it for the <!-- Before -->
<header :class="` bg-grey-200 md:flex hidden `">
<!-- After -->
<header :class="` hidden bg-grey-200 md:flex `"> So, I suspect it probably also won't work with some other variations like |
@reinink I can confirm it doesn't remove extra spaces for |
will this feature be implemented in next releases? |
It doesn't remove the spaces in svelte with |
But yes, please remove duplicate classes from |
Not only spaces but line breaks also should be removed |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Awesome work on this plugin! The only thing Headwind is doing that's currently missing is also removing duplicate class names and extra spaces. Would be a nice addition.
The text was updated successfully, but these errors were encountered: