make build script work on windows
This commit is contained in:
parent
f8e3a75471
commit
18a8f291dc
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Reference in a new issue