Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CompressHTML Whitespace issue #7502 #11298

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Dillonpw marked this conversation as resolved.
Show resolved Hide resolved
*
* ```js
* {
Expand Down
Loading