css – Linux编译器[closed]

前端之家收集整理的这篇文章主要介绍了css – Linux编译器[closed]前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
是否有一个类似less.app可以编译少进CSS?我不在乎一个GUI,不想通过NPM安装它(Node.js的包管理器。)

解决方法

虽然 using node.js version is recommended,你可以安装少ruby gem:
sudo apt-get install rubygems1.8 ruby1.8-dev
sudo gem install rubygems-update
sudo gem update rubygems
sudo gem install less

并且使用在/var/lib/gems/1.8/bin/lessc中的lessc,因此您可能想要创建符号链接

sudo ln -s /var/lib/gems/1.8/bin/lessc /usr/bin/

或者添加ruby gems dir到PATH变量:

export PATH=/var/lib/gems/1.8/bin:$PATH

编辑:

使用lessc as described here

Command-line usage

Less comes with a binary,which lets you invoke the compiler from the
command-line,as such:

06003

This will output the compiled CSS to stdout,you
may then redirect it to a file of your choice:

06004

To output minified CSS,simply pass
the -x option.

猜你在找的CSS相关文章