From bb13f8c995ee502ee65bb956c110c31f50c6692b Mon Sep 17 00:00:00 2001 From: Tom Gao Date: Mon, 3 Jun 2024 22:23:54 +0800 Subject: [PATCH] feat: when webview is production, remove Whitespace --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 68688b4..e4a9395 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,7 +130,7 @@ function genProdWebviewCode(cache: Record, webview?: WebviewOpti }); } - return root.toString(); + return root.removeWhitespace().toString(); } const cacheCode = /* js */ `const htmlCode = {