Skip to content

Commit

Permalink
feat: when webview is production, remove Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Jun 3, 2024
1 parent 3e52440 commit bb13f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function genProdWebviewCode(cache: Record<string, string>, webview?: WebviewOpti
});
}

return root.toString();
return root.removeWhitespace().toString();
}

const cacheCode = /* js */ `const htmlCode = {
Expand Down

0 comments on commit bb13f8c

Please sign in to comment.