From b82d8f2ecee31d6ffdc6f74b0bad4fe2c74d40de Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Tue, 9 Feb 2021 22:09:58 +0900 Subject: [PATCH] fix: utf-8 character not working on safari in dev mode (#228) --- src/node/plugin.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 5ab7f459..3ace4831 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -78,11 +78,17 @@ export function createVitePressPlugin( server.middlewares.use((req, res, next) => { if (req.url!.endsWith('.html')) { res.statusCode = 200 - res.end( - `\n` + - `
\n` + - `` - ) + res.end(` + + + + + + +
+ + +`) return } next()