2014-11-05 63 views
0

我得到在编译的时候这个错误(lessc bootswatch.less > bootstrap.css)全新安装Bootswatch的:Bootswatch.less编译错误

[...]错误评估函数fadein:对象#有没有方法“toHSL '(Less :: Parse Error)。

这是上周的工作..

+0

http://stackoverflow.com/questions/17838107/lessc-using-ruby-instead javascript- – danidewitt 2014-11-05 19:07:20

回答

0

less undefined method error见。

bootswatch文件应与Bootstrap一起编译。因此,创建一个index.less文件,其中包含下面的代码:

@import "bootstrap.less"; //from the Bootstrap source code 
@import "variables.less"; //from your bootswatch theme 
@import "bootswatch.less"; 

而且比编译文件:lessc index.less > bootstrap.css

+0

它最终成为编译器路径之间的冲突。谢谢。 – danidewitt 2014-11-07 20:46:36