2 个仓库
Utilities designed to reduce the file size of stylesheets through compression and optimization rules.
Distinct from Compression Tools: The candidates focus on general data compression or Gzip algorithms, rather than domain-specific CSS stylesheet minification.
Explore 2 awesome GitHub repositories matching web development · CSS Minification Tools. Refine with filters or upvote what's useful.
cssnano 是一个 CSS 压缩和精简工具,可减小样式表的文件大小和 gzip 占用空间。它作为构建流水线优化器和代码转换器运行,在删除空格和注释的同时,将颜色和渐变缩短为尽可能小的表示形式。 该工具使用模块化插件架构和基于预设的优化级别,以平衡压缩强度与浏览器兼容性。它允许根据目标支持浏览器列表调整输出,以确保精简后的样式在不同环境中保持兼容。 该项目集成到 PostCSS 流水线和模块打包器中,提供命令行界面和用于构建过程集成的自动化功能。这使得通过自动化的 CSS 精简工作流能够减少总字节大小并降低网络延迟。
Acts as a dedicated utility to reduce the file size and gzip footprint of CSS stylesheets through modular optimization.
Clean-CSS 是一个 Node.js CSS 优化器和压缩器,旨在减小样式表文件大小并提高 Web 性能。它作为一个 CSS 后处理器,从样式表中删除不必要的空格、注释和冗余属性。 该项目利用抽象语法树进行解析,并使用多遍优化流水线来重构规则并简化属性。它具有用于自定义样式转换的插件接口,并提供兼容性感知压缩,以确保样式在特定的旧版浏览器版本中保持功能正常。 其他功能包括用于调试的源映射生成、用于重定位图像和字体的资产 URL 重置,以及内联导入语句的解析。该系统支持批量文件处理,并提供用于在前端构建流水线中自动化优化任务的命令行界面。
Provides a dedicated tool for reducing the size of stylesheets through compression and optimization rules.