Skip to content

Commit ddb13c4

Browse files
authored
Fix windows path separators for generating DDD style partials. (#128)
1 parent c1d1ceb commit ddb13c4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.core/gulp.tasks.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,13 @@ $assets: (
672672
return partial.replace('reactium_modules/', '+');
673673
}
674674

675-
return path.relative(
676-
path.dirname(config.dest.modulesPartial),
677-
path.resolve(rootPath, partial),
678-
);
675+
return path
676+
.relative(
677+
path.dirname(config.dest.modulesPartial),
678+
path.resolve(rootPath, partial),
679+
)
680+
.split(/[\\\/]/g)
681+
.join(path.posix.sep);
679682
})
680683
.map(partial => partial.replace(/\.scss$/, ''))
681684
.sort((a, b) => {

0 commit comments

Comments
 (0)