Skip to content

Commit eb52edf

Browse files
larsthorupkevlened
authored andcommitted
Improved Windows compatibility (#85)
Resolves: #84
1 parent 1423818 commit eb52edf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/processPattern.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export default function processPattern(globalRef, pattern) {
7878
file.webpackTo = path.relative(output, file.webpackTo);
7979
}
8080

81+
// ensure forward slashes
82+
file.webpackTo = file.webpackTo.replace(/\\/g, '/');
83+
8184
info(`determined that '${fileFrom}' should write to '${file.webpackTo}'`);
8285

8386
return writeFile(globalRef, pattern, file);

0 commit comments

Comments
 (0)