blakeembrey / free-style

Make CSS easier and more maintainable by using JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shorter class names (suggestion)

namuol opened this issue · comments

I noticed toString(16) is used on a hashed integer to derive unique classnames, but toString actually supports a radix as large as 36, which would produce simple lowercase alphanumeric classnames which tend to be approximately 2 characters shorter. Why not use this instead?

You're definitely right, but it'd be a breaking change to alter the hash output. In fact, I already made that change in #6 and it'll be part of V1.

Ah, cool. Not sure why I didn't think to check that branch! 🍻