有关CSS minifier的任何建议吗? [关闭]

本文探讨了多种CSS Minifier工具及其特点,包括.NET端口的YUI Compressor,适用于Visual Studio和TFS构建,PHP中的Minify,Python的slimmer,以及C#中的超快速CSS Minifier。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本文翻译自:Any recommendations for a CSS minifier? [closed]

Any recommendations for a CSS minifier? 有关CSS minifier的任何建议吗?

I'll be rooting around Google and trying some out, but I suspected that the smart, proficient and curiously handsome StackOverflow community might have already evaluated the pros and cons of the heavyweights. 我将围绕谷歌并尝试一些,但我怀疑聪明,精通和好奇的StackOverflow社区可能已经评估了重量级人物的利弊。


#1楼

参考:https://stackoom.com/question/3iWh/有关CSS-minifier的任何建议吗-关闭


#2楼

There's also a .NET port of YUI Compressor which allows you to:- 还有一个YUI Compressor的.NET端口,它允许您: -

  • intergrate the minification/file combining into Visual Studio post-build events 将缩小/文件组合到Visual Studio后构建事件中
  • intergrate into a TFS Build (including CI) 集成到TFS构建(包括CI)
  • if you wish to just use the dll's in your own code (eg. on the fly minification). 如果你想在自己的代码中使用dll(例如,在飞行中缩小)。

UPDATE 2011: And it's now available via NuGet also :) 更新2011:它现在可以通过NuGet :) :)


#3楼

I like Minify . 我喜欢Minify In PHP and works with CSS or JavaScript. 在PHP中,使用CSS或JavaScript。


#4楼

如果您正在寻找在线工具,请尝试以下方法: https//csscompressor.net/


#5楼

If you use Python I would recommend slimmer which is probably not as fast as YUI Compressor but unlike csscompressor.net it doesn't choke on CSS hacks. 如果你使用Python我会推荐更瘦 ,这可能不如YUI Compressor快,但与csscompressor.net不同,它不会扼杀CSS hacks。

I'm biased since I wrote slimmer and I'm currently evaluating YUI Compressor to see how it handles hacks. 自从我写了一些苗条之后我就有了偏见,我正在评估YUI Compressor,看看它是如何处理黑客的。 An example of slimmer in action can be seen if you view the source of crosstips.org 如果您查看crosstips.org的来源,可以看到一个更苗条的行动示例


#6楼

I've written an ultra fast CSS minifier in C#. 我在C#中编写了一个超快速的CSS缩小器。 The algorithm does not handle Javascript though. 该算法不处理Javascript。 Thy this: http://www.ko-sw.com/Blog/post/An-Ultra-Fast-CSS-Minify-Algorithm.aspx . 这是: http//www.ko-sw.com/Blog/post/An-Ultra-Fast-CSS-Minify-Algorithm.aspx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值