5 个仓库
Tools for reducing the size of JavaScript, CSS, and HTML files.
Explore 5 awesome GitHub repositories matching part of an awesome list · Code Minifiers. Refine with filters or upvote what's useful.
UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose is to reduce the file size of JavaScript source code by removing whitespace and shortening variable names to optimize frontend build assets. The project differentiates itself through its ability to programmatically analyze and transform code using abstract syntax trees. It performs constant folding analysis and conditional compilation to eliminate unreachable or redundant code, and it employs a multi-pass compression pipeline to maximize total file size reduction. The tool pr
Standard JavaScript minification tool.
imagemin 是一个 Node.js 图像优化和压缩工具,旨在减小图像资产的存储大小。它作为一个构建流水线资产优化器,采用有损和无损压缩来移除不必要的元数据并优化像素数据。 该项目使用基于插件的架构来扩展其功能,加载处理特定图像格式和压缩算法的外部模块。这使得该工具能够作为一个灵活的工具包,用于在开发流水线中自动化图像压缩。 该系统涵盖了广泛的 Web 性能优化功能,包括集成到前端资产流水线和静态站点生成工作流中,以降低带宽消耗并提高页面加载速度。
Image file size optimization.
This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It functions as a JavaScript minifier that uses the Babel toolchain to reduce file size by removing unnecessary characters and whitespace while preserving program logic. The tool is distinguished by its ability to process experimental language proposals and transform modern syntax into browser-compatible versions. It provides specialized handling for React JSX transpilation and strips type annotations from TypeScript files to produce compressed production assets. The system cove
ES2015-aware JavaScript minifier.
Clean-CSS 是一个 Node.js CSS 优化器,兼具压缩、打包和后处理功能。它旨在通过移除空格、注释和冗余代码来减小样式表的总体积。 该项目提供了一个用于应用自定义转换和浏览器兼容性调整的流水线。它允许通过插件系统和自定义优化插件,以编程方式修改 CSS 规则和值。 该工具涵盖了广泛的资产优化功能,包括样式表打包、import 规则内联和相对 URL 重定向。它还支持用于调试的 source map 生成,以及用于美化的可自定义输出格式。
CSS file minification and optimization.