Skip to content

Commit 8aebf2a

Browse files
authored
remove root sign (#46)
assets can load from subpath
1 parent b1427bd commit 8aebf2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/htmlPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export async function renderHtml(
241241
result = result.replace(
242242
bodyInjectRE,
243243
`<script type="module" src="${normalizePath(
244-
`/${entry}`,
244+
`${entry}`,
245245
)}"></script>\n</body>`,
246246
)
247247
}

0 commit comments

Comments
 (0)