We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
The community reviewed whether to reopen this question 2 years ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
YUI Compressor 是我使用的一个工具,它可以很好地压缩 JS 和 CSS,而且用 Java 编写(因此您可以通过 ant 将其纳入构建过程)。
有人甚至制作了它的在线版本。
The YUI Compressor is a tool I use, it compresses both JS and CSS well, and it is written in Java (so you can work it into a build process via ant).
Someone's even made an online version of it.
还有 YUI Compressor 的 .NET 端口,它允许您:-
。 因为这是(原始)java 版本 YUI Compressor 的端口,上面有一些人提到过,它应该给你相同的结果,但全部在 .NET 环境中 - 不需要 java。
HTH。
There's also a .NET port of YUI Compressor which allows you to:-
because this is a port of the (original) java version YUI Compressor, which a few peeps mention above, it should give you the same results BUT all in the .NET environment -- no need for java.
HTH.
尝试一下YUICompress,它通常很有魅力。 也可以缩小 CSS。
Try YUICompress which usually works like a charm. Can minify CSS as well.
minify 可以完成这项工作。 还有 YUI 压缩机,但我从未尝试过。
来自缩小网站:
minify does the job. There's also YUI Compressor, but I've never tried it.
From the minify website:
一个不错的例子是 Zbugs:“Minify 和 Gzip 压缩 CSS &单击一次 JavaScript”。 输入您的 URL,您可以一键下载结果。 它还显示了一些有关 gzip 压缩、缩小、连接时与原始文件相比的大小信息。
A nice one is Zbugs: "Minify and Gzip compress CSS & Javascript in a single click". Type your URL, and you can one-click download the result. It also shows some informations about the size when gziped, minified, concatenated compared with the original.
这是为 2022 年寻找一种方法来缩小 Jquery 编写的 JS 代码的用户而设计的。 当所有其他选项都用尽时,我发现这个网站可以快速且完美地完成任务。
Minify JavaScript - 在线压缩器/打包器
它似乎只是为了这个目的而构建的。
This is for 2022 users looking for a way to minify Jquery-written JS code. When all other options have been exhausted, I discovered this website that completed the task quickly and flawlessly.
Minify JavaScript - Online Compressor / Packer
Its seems to be built just for the purpose.