2

Possible Duplicate:
Any recommendations for a CSS minifier?

I am looking for a css compressor that can run on our build server that can be executed on a number of css files. Does anyone know of any good ones that work offline?

Community
  • 1
  • 1
Robert
  • 1,129
  • 2
  • 12
  • 23

2 Answers2

4

Yeah, the YUI Compressor by Yahoo! is a Java utility that works offline. It's very good and handles both JavaScript and CSS files.

Blixt
  • 49,547
  • 13
  • 120
  • 153
  • Damn it, second time to be a few seconds too late with the same answer ;) – Marc Oct 18 '10 at 17:42
  • "The YUI Compressor is fantastic. It works on javascript and css. Check it out.".. this is from the duplicate, a little bit of intellectual honesty please :) – Jack Oct 18 '10 at 17:42
  • @Jack: Are you insinuating that I looked up an existing answer and rewrote it here to gain reputation? Perhaps I just knew it because I'm a web developer? Look up my answer history, you'll find at least a hundred accepted answers related to web development. Please don't assume things about people unless you're sure about it. – Blixt Oct 18 '10 at 17:45
  • I didn't accuse anyone. But I don't see any effort in looking for a duplicate for a question already asked FOR SURE before channeling all your developer powers to answer him. – Jack Oct 18 '10 at 17:47
  • Well, I use this site for my own interests. And when I stumble upon a question I can answer, I answer it. People interested in moderation (like you, obviously) are welcome to moderate the question if it is a duplicate, but I don't feel obligated to do so. So still, I don't see what I did wrong. – Blixt Oct 18 '10 at 17:49
  • Thanks, had to mark, Marc as the correct answer though. He had it 1 min before you did. – Robert Oct 18 '10 at 18:26
  • Actually he posted 1 minute after, but it's okay :) Note that his link goes to a .NET library while mine is to a Java library. If you're on a Windows environment, both should work, but the Java one is more cross-platform. – Blixt Oct 18 '10 at 19:51
2

Did you look at Yahoo! UI Library? This provides an programmable (.NET) CSS compressor (as well as an Javascript compressor).

Marc
  • 3,550
  • 22
  • 28