嵌入式网页:css、javascript 和 html 的最佳压缩工具
我正在寻找最好的工具来压缩 css、javascript 和 html。
背景: 我正在嵌入式 Web 服务器上为具有 8 MB 闪存的设备开发 html5 管理 UI。 功能仍然相当先进,但尺寸是一个问题。
我正在寻找的工具理想情况下应该允许包含在我们的后期制作 shell 脚本中。
我已经知道 YUI-compressor,但由于我从未广泛使用它,所以我想知道它是否代表最好的解决方案,或者是否有更好的东西可以使用。
I'm searching for the best tool in order to compact css, javascript and html.
Background:
I'm developing an administration UI in html5 on an embedded web server for a device with 8 MegaBytes of flash memory.
Functionalities are still rather advanced, but size is a concern.
The tool I'm looking for should ideally allow for inclusion in our post-production shell scripts.
I'm already aware of YUI-compressor, but since I never used it extensively I was wondering if it represents the best solution or if there's something better to use.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
注意:我的答案是基于 .NET 的,因为没有指定操作系统/框架。
YUICompressor(NuGet 上有一个 .NET 版本)可以(免责声明:我是一名合作者) -.NET 项目的协调员)。
最近,RequestReduce 真是太棒了!
您可能还想查看 SquishIt 作为第三个选项。
最后,.NET 的下一个版本(在发布本文时)将包含最终融入产品中的这些内容。
Note: my answers are .NET based, because no OS/Framework was specified.
YUICompressor (and there's a .NET version on NuGet) is ok (Disclaimer: I'm a co-ordinator of the .NET project).
More recently, there's RequestReduce that is pretty damn awesome!
You also might want to check out SquishIt as a 3rd option.
Finally, the next version of .NET (at the time of this posting) will include this stuff finaly baked into the product.
有 maven-minify-plugin,它的配置如下:
有 yuicompressor 库,我最近在我的应用程序中使用了它。然而,这存在结构性错误,这使得只能在具有强组合的应用程序服务器上使用,如主题中所述
jboss 上的 Yui 压缩器 StringIndexOutOfBoundsException
There's maven-minify-plugin, it is configured such as:
There's yuicompressor library, which I've recently used with my app. This has however structural bugs, which makes it possible to use on application server only with strong combinations, as described in topic
Yui compressor StringIndexOutOfBoundsException on jboss