生产代码有哪些好的 css 和 js 最小化器? [英] What are some good css and js minimizers for production code?
问题描述
我正在寻找一些最小化 css 和 js 文件的应用程序或网站.理想情况下,他们可以将它们全部批量化,如果不是,则一次一个.
I'm looking for some applications or websites that minimize css and js files. Ideally, they could batch them all or if not, one at a time.
推荐答案
YUI Compressor 做到这两点JavaScript 和 CSS.我不确定您是否可以将一批文件发送给它.
YUI Compressor does both JavaScript and CSS. I'm not sure if you can send it a batch of files.
您可以在YUI Compressor Online (yui.2clics.net)进行批处理a>,虽然那个版本只接受 JavaScript.另一个 在线 YUI 压缩器 (refresh-sf.com) 也接受 CSS,但不接受t批次.
You can batch process at YUI Compressor Online (yui.2clics.net), though that version only accepts JavaScript. Another Online YUI Compressor (refresh-sf.com) accepts CSS, too, but doesn't batch.
在比较各种缩小器方面,请参阅 jQuery : 常见问题 (FAQ) : How我应该压缩我的代码吗?另外,请查看 Microsoft Ajax Minifier.
In terms of comparing the various minifiers, see jQuery : Frequently Asked Questions (FAQ) : How do I compress my code? Also, check out Microsoft Ajax Minifier.
jQuery 已从 YUI Compressor 切换到 Google 的 Closure Compiler他们分发.
jQuery has switched from the YUI Compressor to Google's Closure Compiler for the minified version that they distribute.
这篇关于生产代码有哪些好的 css 和 js 最小化器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!