Skip to content

Commit c6eebab

Browse files
Merge pull request #1199 from bryceosterhaus/master
fix(npm-scripts): fix support for windows file system
2 parents 7fcc0ce + 5f97b14 commit c6eebab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/npm-tools/packages/npm-scripts/src/utils/webpackScssLoader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ module.exports = function (_content, _map, _meta) {
1515

1616
const webContextPath = getBndWebContextPath(projectDir);
1717

18-
let urlPath = path.relative(buildConfig.input, resourcePath);
18+
let urlPath = path
19+
.relative(path.join(projectDir, buildConfig.input), resourcePath)
20+
.split(path.sep)
21+
.join(path.posix.sep);
1922

2023
urlPath = urlPath.replace(/scss$/, 'css');
2124

0 commit comments

Comments
 (0)