开发者

Is there any CSS minifier in C / C++ / Perl for Linux / Mac ? [closed]

开发者 https://www.devze.com 2023-02-10 00:49 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

Can 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消