我的grunt-recess任务无法正常编译

时间:2014-05-16 15:09:44

标签: twitter-bootstrap less gruntjs twitter-recess

我的Gruntfile.coffee有:

recess:
  dist:
    options:
      compile: true
      includePath: ['public/bower_components/bootstrap-less/less']
    src: 'dist/assets/ln.css'
    dest: 'public/stylesheets/ln.less'

我的ln.less非常简单: @import "../bower_components/bootstrap-less/less/bootstrap.less";

当我grunt recess时,我得到:

Running "recess:dist" (recess) task
Verifying property recess.dist exists in config...OK
Files: public/stylesheets/ln.less -> dist/assets/ln.css
Options: banner="", compress=false, footer="", compile, includePath=["public/bower_components/bootstrap-less/less"]
>> Parser error in public/bower_components/bootstrap-less/less/mixins.less
>>      643.   padding-right: (@grid-gutter-width / 2);
>>      644.   &:extend(.clearfix all);
>>      645. }
Warning:  Use --force to continue.

Aborted due to warnings.

我做错了什么?

1 个答案:

答案 0 :(得分:1)

根据comment by seven-phases-max,我正在使用grunt-contrib-less任务,这似乎运作良好。