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 10a8f427c..faab0db0f 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');