2
附件是一个跟踪,同时使用grunt dist
如何在编译引导时修复较少的错误?
(webmaker)Anils-MacBook-Pro:bootstrap anil$ grunt dist
Running "clean:dist" (clean) task
Running "less:compileCore" (less) task
>> ArgumentError: error evaluating function `ceil`: argument must be a number in less/variables.less on line 48, column 27:
>> 47 @font-size-base: 15px;
>> 48 @font-size-large: ceil(@font-size-base * 1.25); // ~18px
>> 49 @font-size-small: ceil(@font-size-base * 0.85); // ~12px
Warning: Error compiling less/bootstrap.less Use --force to continue.
Aborted due to warnings.
grunt-contrib-less
的是最新的版本,可以看出,可变@字体大小基只是上面所定义,它工作编译。
一个类似的线程,我发现https://groups.google.com/forum/#!topic/brackets-dev/ZpBOFqDc3H8但没有解决方案呢。
看起来它是用'--strict-math = on'编译的较少选项,但Boosrtrap 3.0.3和以下)需要'--strict-math = off'。 (相反,当前的Boosrtrap master需要'--strict-math = on')。 –