我的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.
我究竟做错了什么?