From c71c44a59420582e78cae55713fac8fc9256db83 Mon Sep 17 00:00:00 2001 From: Rushikesh Ambhore <123349229+RUSHIM24@users.noreply.github.com> Date: Mon, 17 Apr 2023 16:45:01 +0530 Subject: [PATCH] changes done --- packages/less/src/less-node/file-manager.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/less/src/less-node/file-manager.js b/packages/less/src/less-node/file-manager.js index 5482c420f..9f8f3f476 100644 --- a/packages/less/src/less-node/file-manager.js +++ b/packages/less/src/less-node/file-manager.js @@ -85,7 +85,12 @@ FileManager.prototype = Object.assign(new AbstractFileManager(), { fullFilename = fileParts.rawPath + prefixes[j] + fileParts.filename; if (paths[i]) { - fullFilename = path.join(paths[i], fullFilename); + if (paths[i].startsWith('#')) { + // Handling paths starting with '#' + fullFilename = paths[i].substr(1) + fullFilename; + }else{ + fullFilename = path.join(paths[i], fullFilename); + } } if (!explicit && paths[i] === '.') {