fix: render document with standards mode in dev (#207)

pull/228/head
NAN 5 years ago committed by GitHub
parent 5deaf6a2cd
commit 8a0db65a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,8 @@ export function createVitePressPlugin(
if (req.url!.endsWith('.html')) { if (req.url!.endsWith('.html')) {
res.statusCode = 200 res.statusCode = 200
res.end( res.end(
`<div id="app"></div>\n` + `<!DOCTYPE html>\n` +
`<div id="app"></div>\n` +
`<script type="module" src="/@fs/${APP_PATH}/index.js"></script>` `<script type="module" src="/@fs/${APP_PATH}/index.js"></script>`
) )
return return

Loading…
Cancel
Save