mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
fix: router duplicated
This commit is contained in:
+1
-5
@@ -58,11 +58,7 @@ async function main() {
|
||||
}
|
||||
|
||||
const htmlContent = readFileSync(INDEX_SRC, "utf8");
|
||||
const updatedHtml = htmlContent
|
||||
.replace(/href="([^"]*)"/g, 'th:href="@{$1}"')
|
||||
.replace(/src="([^"]*)"/g, 'th:src="@{$1}"');
|
||||
|
||||
writeFileSync(INDEX_DEST, updatedHtml);
|
||||
writeFileSync(INDEX_DEST, htmlContent);
|
||||
console.log("SpringBoot resources updated successfully");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user