adamgian / minify-selectors

Post-processor to minify class and ID selector names.
Apache License 2.0
8 stars 0 forks source link

Keep track of classes and ID indexes separately #16

Closed adamgian closed 2 years ago

adamgian commented 2 years ago

Opportunity to optimise the assignment of encoded selectors. So .foo, #foo, .bar, #bar and .baz would map to .a, #a, .b, #b and .c.

Instead of, right now: .foo, #foo, .bar, #bar and .baz is mapped to .a, #b, .c, #d and .e.

Effectively doubles the capacity for each alphabet character — a character could hold a class and a ID — as opposed to a character holding just a class or ID.

adamgian commented 2 years ago

Has been addressed since fbba9d5b8596f8736a1b08fa6cfde7283797dc0d