From bfead91b09324f9a087000ea9ad682e1aff1e0bd Mon Sep 17 00:00:00 2001 From: HyperLifelll9 Date: Fri, 19 Apr 2024 16:43:47 +0800 Subject: [PATCH] build: fix prerender (#8509) --- scripts/prerender/minify.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prerender/minify.ts b/scripts/prerender/minify.ts index cea2cc4c57..1328ce8997 100644 --- a/scripts/prerender/minify.ts +++ b/scripts/prerender/minify.ts @@ -23,7 +23,7 @@ async function minifyJs(content: string): Promise { async function minifyHtml(content: string): Promise { return htmlMinifier(content, { collapseBooleanAttributes: true, - collapseWhitespace: true, + collapseWhitespace: false, decodeEntities: true, includeAutoGeneratedTags: false, minifyCSS: true, @@ -31,7 +31,7 @@ async function minifyHtml(content: string): Promise { minifyURLs: true, processScripts: ['text/html'], ignoreCustomComments: [], - removeComments: true, + removeComments: false, removeRedundantAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true,