-
Notifications
You must be signed in to change notification settings - Fork 570
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
Sort/normalize class tokens #267
Comments
I'm concerned about this affecting class names containing templates such as this. <a class="btn {{#if loading}}loading{{/if}}"></a> The tokenization I'd also be interested in seeing the compression difference this makes. My suspicion is not much, but I'd be happy to be shown wrong. |
I was imagining an option (default: false) since it's not suitable for every case. |
I do wonder who write class names in random orders inside a HTML page to begin with. OTOH, implementing this is probably simple enough, and gated by a flag makes it pretty safe as well. |
Like #4, this would help compression (and readability).
The text was updated successfully, but these errors were encountered: