mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
make import use shared relative path function
This commit is contained in:
@@ -68,7 +68,7 @@ tree.Import.prototype = {
|
||||
if (this.rootpath && !(path instanceof tree.URL)) {
|
||||
var pathValue = path.value;
|
||||
// Add the base path if the import is relative
|
||||
if (pathValue && !/^(?:[a-z\-]+:|\/)/.test(pathValue)) {
|
||||
if (pathValue && env.isPathRelative(pathValue)) {
|
||||
path.value = this.rootpath + pathValue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user