Skip to content

Commit 7122c49

Browse files
committed
Fix static file path separator on windows
1 parent 750c245 commit 7122c49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export function build(callback:() => void) {
6262
// Copy static JS files into build.
6363
let matches = glob.sync("src/*.js");
6464
for(let match of matches) {
65+
if(path.sep !== "/") match = match.replace("/", path.sep);
6566
let relative = match.split(path.sep).slice(1).join(path.sep);
6667
copy(match, path.join("build", "src", relative), tracker.track("copy static files"));
6768
}

0 commit comments

Comments
 (0)