We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0db65 commit b82d8f2Copy full SHA for b82d8f2
src/node/plugin.ts
@@ -78,11 +78,17 @@ export function createVitePressPlugin(
78
server.middlewares.use((req, res, next) => {
79
if (req.url!.endsWith('.html')) {
80
res.statusCode = 200
81
- res.end(
82
- `<!DOCTYPE html>\n` +
83
- `<div id="app"></div>\n` +
84
- `<script type="module" src="/@fs/${APP_PATH}/index.js"></script>`
85
- )
+ res.end(`
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
86
+ </head>
87
+ <body>
88
+ <div id="app"></div>
89
+ <script type="module" src="/@fs/${APP_PATH}/index.js"></script>
90
+ </body>
91
+</html>`)
92
return
93
}
94
next()
0 commit comments