Skip to content

Commit

Permalink
fix: render document with standards mode in dev (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizard67 committed Feb 9, 2021
1 parent 5deaf6a commit 8a0db65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export function createVitePressPlugin(
if (req.url!.endsWith('.html')) {
res.statusCode = 200
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>`
)
return
Expand Down

0 comments on commit 8a0db65

Please sign in to comment.