From 04e24ce23d48ce2f5726aa20a6031f95ba2afc6b Mon Sep 17 00:00:00 2001 From: Kia King Ishii Date: Tue, 9 Feb 2021 21:59:54 +0900 Subject: [PATCH] fix: utf-8 character not working on safari in dev mode --- 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 5ab7f45976a6..3ace4831b855 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()