mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
make build script work on windows
This commit is contained in:
parent
f8e3a75471
commit
18a8f291dc
@ -358,7 +358,7 @@ async function copyFolder(srcRoot, dstRoot, filter) {
|
|||||||
|
|
||||||
function resource(relPath, content) {
|
function resource(relPath, content) {
|
||||||
let fullPath = relPath;
|
let fullPath = relPath;
|
||||||
if (!relPath.startsWith("/")) {
|
if (!path.isAbsolute(relPath)) {
|
||||||
fullPath = path.join(targetDir, relPath);
|
fullPath = path.join(targetDir, relPath);
|
||||||
}
|
}
|
||||||
const hash = contentHash(Buffer.from(content));
|
const hash = contentHash(Buffer.from(content));
|
||||||
|
Loading…
Reference in New Issue
Block a user