fix(ssr-server): minify code result should await
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
parent
a9569cc2ec
commit
1c5cd04846
|
|
@ -77,7 +77,7 @@ injectEnv({"VITE_API_URL":"${apiUrl}","VITE_EXTERNAL_API_URL":"${apiUrl}","VITE_
|
|||
|
||||
reply.type("text/html")
|
||||
reply.send(
|
||||
minify(document.toString(), {
|
||||
await minify(document.toString(), {
|
||||
removeComments: true,
|
||||
html5: true,
|
||||
minifyJS: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue