Skip to content

Commit 8a0db65

Browse files
authored
fix: render document with standards mode in dev (#207)
1 parent 5deaf6a commit 8a0db65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/plugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ export function createVitePressPlugin(
7979
if (req.url!.endsWith('.html')) {
8080
res.statusCode = 200
8181
res.end(
82-
`<div id="app"></div>\n` +
82+
`<!DOCTYPE html>\n` +
83+
`<div id="app"></div>\n` +
8384
`<script type="module" src="/@fs/${APP_PATH}/index.js"></script>`
8485
)
8586
return

0 commit comments

Comments
 (0)