Skip to content

Commit

Permalink
Merge pull request #1974 from dominicbarnes/master
Browse files Browse the repository at this point in the history
Change paths determination for CLI
  • Loading branch information
lukeapage committed May 2, 2014
2 parents d6d983f + 7f8dfae commit 85b911a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/less/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ less.Parser.fileLoader = function (file, currentFileInfo, callback, env) {
});
} else {

var paths = [currentFileInfo.currentDirectory].concat(env.paths);
paths.push('.');
var paths = [currentFileInfo.currentDirectory];
if (env.paths) paths.push.apply(paths, env.paths);
if (paths.indexOf('.') === -1) paths.push('.');

if (env.syncImport) {
for (var i = 0; i < paths.length; i++) {
Expand Down

0 comments on commit 85b911a

Please sign in to comment.