mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Allows for inclusing of LESS files from node_modules without .less extension
This commit is contained in:
@@ -82,9 +82,8 @@ FileManager.prototype.loadFile = function(filename, currentDirectory, options, e
|
||||
}
|
||||
catch (e) {}
|
||||
}
|
||||
else {
|
||||
fullFilename = options.ext ? self.tryAppendExtension(fullFilename, options.ext) : fullFilename;
|
||||
}
|
||||
|
||||
fullFilename = options.ext ? self.tryAppendExtension(fullFilename, options.ext) : fullFilename;
|
||||
|
||||
if (self.files[fullFilename]) {
|
||||
fulfill({ contents: self.files[fullFilename], filename: fullFilename});
|
||||
|
||||
Reference in New Issue
Block a user