diff --git a/index.html b/index.html index cdf0ad4f..b09286a0 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,11 @@ ` + + `` + `` + - ``); + ``); removeOrEnableScript(doc("script#service-worker"), offline); const versionScript = doc("script#version"); @@ -338,7 +346,7 @@ async function copyFolder(srcRoot, dstRoot, filter) { if (dirEnt.isDirectory()) { await fs.mkdir(dstPath); Object.assign(assetPaths, await copyFolder(srcPath, dstPath, filter)); - } else if (dirEnt.isFile() && filter(srcPath)) { + } else if ((dirEnt.isFile() || dirEnt.isSymbolicLink()) && (!filter || filter(srcPath))) { const content = await fs.readFile(srcPath); const hashedDstPath = resource(dstPath, content); await fs.writeFile(hashedDstPath, content);