We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 290d7a0 commit 57b41f0Copy full SHA for 57b41f0
lib/less/tree/import.js
@@ -68,7 +68,7 @@ tree.Import.prototype = {
68
if (this.rootpath && !(path instanceof tree.URL)) {
69
var pathValue = path.value;
70
// Add the base path if the import is relative
71
- if (pathValue && !/^(?:[a-z\-]+:|\/)/.test(pathValue)) {
+ if (pathValue && env.isPathRelative(pathValue)) {
72
path.value = this.rootpath + pathValue;
73
}
74
0 commit comments