Skip to content

Commit 20abf0a

Browse files
committed
Merge pull request #2031 from chenboxiang/master
Fix a bug: if the less file end line is comments, the lessc command option "modify-var" will have no effect.
2 parents 6da6a01 + 56d062b commit 20abf0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/lessc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ var parseLessFile = function (e, data) {
336336
return;
337337
}
338338

339-
data = options.globalVariables + data + options.modifyVariables;
339+
data = options.globalVariables + data + '\n' + options.modifyVariables;
340340

341341
options.paths = [path.dirname(input)].concat(options.paths);
342342
options.filename = input;

0 commit comments

Comments
 (0)