解决方法
虽然
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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。