Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit a91f3fe

Browse files
committed
fix asset paths on windows
1 parent 090a47c commit a91f3fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asset-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function collectAssetFiles(folder: string): Promise<AssetFile[]> {
1919
})
2020

2121
return files.map((file) => ({
22-
path: "/" + relative(folder, file),
22+
path: "/" + relative(folder, file).replace(/\\/g, "/"),
2323
content: () => readFile(file),
2424
}))
2525
}

0 commit comments

Comments
 (0)