Any recommendations for a CSS minifier? [closed]

2019-01-01 07:58发布

Any recommendations for a 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.

标签: css minify
21条回答
流年柔荑漫光年
2楼-- · 2019-01-01 08:42

There's also a .NET port of YUI Compressor which allows you to:-

  • intergrate the minification/file combining into Visual Studio post-build events
  • intergrate into a TFS Build (including CI)
  • if you wish to just use the dll's in your own code (eg. on the fly minification).

UPDATE 2011: And it's now available via NuGet also :)

查看更多
皆成旧梦
4楼-- · 2019-01-01 08:42

I find that isnoop's CSS SuperScrub works very well. It can only handle direct links to CSS online though :/ You can get around that though by using your preferred pastebin service to hold the css code and just giving SuperScrub the raw link.

查看更多
一个人的天荒地老
5楼-- · 2019-01-01 08:42

An online tool (much better than www.csscompressor.net which jacked my css up): http://www.cssdrive.com/compressor/compress.php does an excellent job.

查看更多
一个人的天荒地老
6楼-- · 2019-01-01 08:43

I like Minify. In PHP and works with CSS or JavaScript.

查看更多
时光乱了年华
7楼-- · 2019-01-01 08:44

I've written an ultra fast CSS minifier in C#. The algorithm does not handle Javascript though. Thy this: http://www.ko-sw.com/Blog/post/An-Ultra-Fast-CSS-Minify-Algorithm.aspx.

查看更多
登录 后发表回答