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,