CSS 优化工具: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
andpadding
properties
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!