Skip to content

Commit 82669c5

Browse files
author
y-yamasaki
committed
Merge branch 'develop'
2 parents 724128b + 055b0bf commit 82669c5

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

WebSite/tools/build-assets.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -548,21 +548,9 @@ function updateHtmlReferences() {
548548
},
549549
);
550550

551-
// --- Write backup and new HTML ---
552-
const backupPath = filePath + ".bak";
551+
// --- Write new HTML (no .bak backup) ---
553552
try {
554-
// Write backup only if not exists previously, to avoid overwriting older backups
555-
if (!fs.existsSync(backupPath)) {
556-
fs.writeFileSync(backupPath, html, "utf8");
557-
log(
558-
`Backup created: ${path.relative(ROOT, backupPath)}`,
559-
);
560-
} else {
561-
log(
562-
`Backup already exists: ${path.relative(ROOT, backupPath)}`,
563-
);
564-
}
565-
// Write modified HTML
553+
// Write modified HTML directly without creating backup files
566554
const outHtml = $.html();
567555
fs.writeFileSync(filePath, outHtml, "utf8");
568556
log(`Updated HTML: ${path.relative(ROOT, filePath)}`);

0 commit comments

Comments
 (0)