Skip to content

Commit 70ae418

Browse files
committed
fix: router duplicated
1 parent 07c612e commit 70ae418

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

web/copy-build.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ async function main() {
5858
}
5959

6060
const htmlContent = readFileSync(INDEX_SRC, "utf8");
61-
const updatedHtml = htmlContent
62-
.replace(/href="([^"]*)"/g, 'th:href="@{$1}"')
63-
.replace(/src="([^"]*)"/g, 'th:src="@{$1}"');
64-
65-
writeFileSync(INDEX_DEST, updatedHtml);
61+
writeFileSync(INDEX_DEST, htmlContent);
6662
console.log("SpringBoot resources updated successfully");
6763
}
6864

0 commit comments

Comments
 (0)