Skip to content

Commit 1b1285c

Browse files
committed
chore: omitted
1 parent 649f595 commit 1b1285c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<meta charset="UTF-8" />
66
<link rel="icon" href="/favicon.ico" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>JSON Editor Vue (Vue {{VUE_VERSION}})</title>
8+
<title>{{ NAME }} (Vue {{ VUE_VERSION }})</title>
99
</head>
1010

1111
<body>
1212
<div id="app"></div>
13-
<script type="module" src="/demo/vue{{VUE_VERSION}}/index.ts"></script>
13+
<script type="module" src="/demo/vue{{ VUE_VERSION }}.js"></script>
1414
</body>
1515

1616
</html>

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
{
3838
name: 'html-transform',
3939
transformIndexHtml(html: string) {
40-
return html.replace(/\{\{NAME\}\}/, name).replace(/\{\{VUE_VERSION\}\}/g, String(major === 3 ? major : `${major}.${minor}`))
40+
return html.replace(/\{\{ NAME \}\}/, name).replace(/\{\{ VUE_VERSION \}\}/g, String(major === 3 ? major : `${major}.${minor}`))
4141
},
4242
},
4343
dts({ rollupTypes: true }),

0 commit comments

Comments
 (0)