Skip to content

Commit

Permalink
Merge pull request #2031 from chenboxiang/master
Browse files Browse the repository at this point in the history
Fix a bug: if the less file end line is comments, the lessc command option "modify-var" will have no effect.
  • Loading branch information
lukeapage committed Jun 6, 2014
2 parents 6da6a01 + 56d062b commit 20abf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lessc
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ var parseLessFile = function (e, data) {
return;
}

data = options.globalVariables + data + options.modifyVariables;
data = options.globalVariables + data + '\n' + options.modifyVariables;

options.paths = [path.dirname(input)].concat(options.paths);
options.filename = input;
Expand Down

0 comments on commit 20abf0a

Please sign in to comment.