Update CompressHTML Whitespace issue #7502 (#11298)

This commit is contained in:
Dillon Walsh 2024-06-25 07:17:14 -04:00 committed by GitHub
parent ce310f8292
commit e79859129b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -750,8 +750,11 @@ export interface AstroUserConfig {
* @type {boolean}
* @default `true`
* @description
* This is an option to minify your HTML output and reduce the size of your HTML files. By default, Astro removes all whitespace from your HTML, including line breaks, from `.astro` components. This occurs both in development mode and in the final build.
* To disable HTML compression, set the `compressHTML` flag to `false`.
*
* This is an option to minify your HTML output and reduce the size of your HTML files, occuring both in development mode and in the final build.
* By default, Astro removes whitespace from your HTML, including line breaks, from .astro components in a lossless manner.
* It is important to note that some whitespace may be kept to preserve the visual rendering of your HTML.
* To disable HTML compression, set the compressHTML flag to false.
*
* ```js
* {