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:20

Perl has CSS::Minifier (and an XS version for extra speed).

查看更多
泛滥B
3楼-- · 2019-01-01 08:21

There is a codeplex project that will plug in to .net websites that will minify and compress the CSS and the JS files. There is also a comparison between the Microsoft AJAX Minifier and the YUI Compressor which shows the YUI coming out slightly better. There is an extra variation which combines the Microsoft Minifier and compression which drastically srunk the file.

Anyway the link is http://xpedite.codeplex.com/wikipage?title=Minifier%20(CSS%2FJavaScript%20Minification%20Handlers)

查看更多
旧人旧事旧时光
4楼-- · 2019-01-01 08:24

If you are looking for an online tool, try this: https://csscompressor.net/

查看更多
闭嘴吧你
5楼-- · 2019-01-01 08:25

If your site is in ASP.NET, you can let your site do the CSS minification on the fly (so you don't have to do it manually each time you make a change). For example with this:

http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx

查看更多
余生请多指教
6楼-- · 2019-01-01 08:26

CSSO is currently best minifier/optimizer.

查看更多
不流泪的眼
7楼-- · 2019-01-01 08:29

This is how I did it for MVC3: http://mkramar.blogspot.com/2011/08/css-and-javascript-minify-and-combine.html The beauty of this approach is that it does it all on the fly and you don't have to pre-process files manually or configure post-build.

查看更多
登录 后发表回答