From 18a8f291dc4f7f5868ad375f72927a1aea156a92 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 9 Sep 2020 10:32:05 +0100 Subject: [PATCH] make build script work on windows --- scripts/build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 7599d108..15d090be 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -358,7 +358,7 @@ async function copyFolder(srcRoot, dstRoot, filter) { function resource(relPath, content) { let fullPath = relPath; - if (!relPath.startsWith("/")) { + if (!path.isAbsolute(relPath)) { fullPath = path.join(targetDir, relPath); } const hash = contentHash(Buffer.from(content));