From 5f97b14ecd29b4943c614fa0e919667608a66920 Mon Sep 17 00:00:00 2001 From: Bryce Osterhaus Date: Thu, 21 Mar 2024 10:22:39 +0400 Subject: [PATCH] fix(npm-scripts): fix support for windows file system --- .../packages/npm-scripts/src/utils/webpackScssLoader.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/npm-tools/packages/npm-scripts/src/utils/webpackScssLoader.js b/projects/npm-tools/packages/npm-scripts/src/utils/webpackScssLoader.js index 10a8f427cb..faab0db0f3 100644 --- a/projects/npm-tools/packages/npm-scripts/src/utils/webpackScssLoader.js +++ b/projects/npm-tools/packages/npm-scripts/src/utils/webpackScssLoader.js @@ -15,7 +15,10 @@ module.exports = function (_content, _map, _meta) { const webContextPath = getBndWebContextPath(projectDir); - let urlPath = path.relative(buildConfig.input, resourcePath); + let urlPath = path + .relative(path.join(projectDir, buildConfig.input), resourcePath) + .split(path.sep) + .join(path.posix.sep); urlPath = urlPath.replace(/scss$/, 'css');