Skip to content

Commit

Permalink
Fix windows path separators for generating DDD style partials. (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdillick committed Feb 20, 2022
1 parent c1d1ceb commit ddb13c4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .core/gulp.tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,13 @@ $assets: (
return partial.replace('reactium_modules/', '+');
}

return path.relative(
path.dirname(config.dest.modulesPartial),
path.resolve(rootPath, partial),
);
return path
.relative(
path.dirname(config.dest.modulesPartial),
path.resolve(rootPath, partial),
)
.split(/[\\\/]/g)
.join(path.posix.sep);
})
.map(partial => partial.replace(/\.scss$/, ''))
.sort((a, b) => {
Expand Down

0 comments on commit ddb13c4

Please sign in to comment.