File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) } ` ) ;
You can’t perform that action at this time.
0 commit comments