Skip to content

Commit

Permalink
remove main.ts in generated html
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Dec 13, 2024
1 parent e25c5d2 commit 1f8e937
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion moonbit-tour/dev/generate-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ const generatePlugin = (): vite.Plugin => {
.replace("%HEAD%", head)
.replace("%TITLE%", `${l.lesson} - MoonBit Language Tour`)
.replace("%MARKDOWN%", l.markdown)
.replace("%CODE%", l.code);
.replace("%CODE%", l.code)
.replace(
' <script type="module" src="/src/main.ts"></script>',
"",
);
if (i === 0) {
res = res.replace("%BACK%", `<a href="${BASE}/index.html">Back</a>`);
}
Expand Down

0 comments on commit 1f8e937

Please sign in to comment.