Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit 753f2c3

Browse files
committed
feat: add base tag for #4
1 parent 7e7ed6c commit 753f2c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,14 @@ const getPageHTML = options => {
5050
return options.html
5151
}
5252
const vue = getVuePath(options)
53+
54+
// note: add "base" tag to force loading static assets
55+
// from the server, not from the "spec" file URL
5356
const vueHtml = stripIndent`
5457
<html>
55-
<head></head>
58+
<head>
59+
<base href="/" />
60+
</head>
5661
<body>
5762
<div id="app"></div>
5863
<script src="${vue}"></script>

0 commit comments

Comments
 (0)