【发布时间】:2014-01-31 06:10:04
【问题描述】:
附加的是使用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 是最新版本,可以看出,变量@font-size-base 就在上面定义并且可以正常工作。
我找到了一个类似的帖子 https://groups.google.com/forum/#!topic/brackets-dev/ZpBOFqDc3H8,但还没有解决方案。
【问题讨论】:
-
看起来它是用
--strict-math=onLess 选项编译的,但 Boosrtrap 3.0.3(及以下)需要--strict-math=off。 (相反,当前的 Boostrap master 需要--strict-math=on)。
标签: twitter-bootstrap less twitter-bootstrap-3