0

我的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.

我究竟做错了什么?

4

1 回答 1

1

根据7-phases-max 的评论,我正在使用该grunt-contrib-less任务,这似乎效果很好。

于 2014-05-20T15:15:51.647 回答