make build script work on windows

This commit is contained in:
Bruno Windels 2020-09-09 10:32:05 +01:00
parent f8e3a75471
commit 18a8f291dc

View file

@ -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));