Is there any CSS minifier in C / C++ / Perl for Linux / Mac ? [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this questionCan you poi开发者_高级运维nt me to a CSS minifier written in C or C++ or Perl so that I can use it on linux / Mac ?
Another very useful software for compress css, among other niceties is Less: http://lesscss.org/
$ lessc -x styles.less > styles.css
I usually use Ruby but there are some nice online minifiers that might fit the bill:
http://www.minifycss.com/css-compressor/
http://refresh-sf.com/yui/
Or you could pull this Perl implementation from CPAN (looks like very young software though):
http://metacpan.org/pod/CSS::Minifier
You can use CSSTidy, it minimizes CSS files and written in C++ (also have PHP version).
Code Beautifier is the best I have come across - plenty of options and all online so platform independent.
精彩评论