We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7a181 commit 9678781Copy full SHA for 9678781
1 file changed
website/install-fonts.js
@@ -58,6 +58,11 @@ FILES_TO_COPY.forEach(([source, dest]) => {
58
processedDestinations.add(destPath);
59
console.log(`Copied: ${sourcePath} → ${destPath}`);
60
}
61
+
62
+ // Replace all occurrences of "./files" with "/fonts" in the destination file
63
+ let destFileContent = fs.readFileSync(destPath, "utf8");
64
+ destFileContent = destFileContent.replaceAll("./files/", "/fonts/files/");
65
+ fs.writeFileSync(destPath, destFileContent);
66
} catch (error) {
67
console.error(`Error processing ${sourcePath} to ${destPath}:`, error);
68
process.exit(1);
0 commit comments