压缩器
🌐 Minifier
TIP
oxc-minify 目前处于 alpha 版本,可能仍存在错误。我们建议在部署到生产环境之前,彻底测试其输出。
特性
🌐 Features
假设
🌐 Assumptions
为了实现更好的优化,Oxc 压缩器对你的代码做了一些假设。有关更多信息,请参阅 假设文档。
🌐 To allow better optimizations, Oxc minifier makes some assumptions about your code. See Assumptions document for more information.
常见问题
🌐 FAQ
请参阅 常见问题 了解常见问题。
🌐 See FAQ for common questions.
安装
🌐 Installation
使用 Rolldown
🌐 With Rolldown
如果你使用的是 下滚,默认情况下将使用 oxc-minify 进行压缩。无需额外安装。
🌐 If you are using Rolldown, oxc-minify will be used for minification by default. No extra installation is required.
Node.js
- 使用节点绑定 oxc-压缩。
- 在 stackblitz 上试试。
Rust
使用带有 minifier 功能的 oxc 伞形 crate。
🌐 Use the umbrella crate oxc with the minifier feature.
可以在这里找到 Rust 使用示例。
🌐 Rust usage example can be found here.
集成
🌐 Integrations
