cssnano/cssnano

Discussion: transformation to lowercase?

Open

#197 创建于 2016年5月20日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)CSS (4,909 star) (324 fork)batch import
help wantedquestion

描述

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

贡献者指南