cssnano/cssnano

Discussion: transformation to lowercase?

Open

#197 aberto em 20 de mai. de 2016

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)CSS (324 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (4.909 stars)
Métricas de merge de PR
 (Mesclagem média 9h 18m) (14 fundiu PRs em 30d)

Description

Accoring to the specs, "everything under control of CSS" is case-insensitive. Exceptions (not under control) are for example classNames, IDs, url-fragments, etc.

From a compression point of view (e.g. file is transfered via gzip), it's preferable to have similar Strings. Therefore the transfered size of a CSS could be reduced by simply transforming all case-insensitive parts to lowercase.

Do you think some sort of postcss-transform-to-lowercase plugin could be useful? I might be willing to work on something like that, if it has a realistic chance of making it into cssnano :)

Regards MattDiMu

Guia do colaborador