Skip to content

Commit

Permalink
fix(npm-scripts): fix support for windows file system
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus committed Mar 21, 2024
1 parent 7fcc0ce commit 5f97b14
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 5f97b14

Please sign in to comment.