CSSO 介绍
CSSO (CSS Optimizer) 是一个 CSS 最小化压缩工具,不仅对 CSS 做压缩还对 CSS 进行结构分析,生成更小的文件。
安全转换:
- Removal of whitespace
- Removal of trailing ;
- Removal of comments
- Removal of invalid @charset и @import declarations
- Minification of color properties
- Minification of 0
- Minification of multi-line strings
- Minification of the font-weight property
结构优化:
- Merging blocks with identical selectors
- Merging blocks with identical properties
- Removal of overridden properties
- Removal of overridden shorthand properties
- Removal of repeating selectors
- Partial merging of blocks
- Partial splitting of blocks
- Removal of empty ruleset and at-rule
- Minification of margin and padding properties
CSSO 官网
http://bem.info/tools/optimizers/csso/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。