astro/.changeset/tiny-snails-dance.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
469 B
Markdown
Raw Normal View History

2023-05-17 13:26:49 +00:00
---
'astro': minor
---
Adds an opt-in way to minify the HTML output.
Using the `compressHTML` option Astro will remove whitespace from Astro components. This only applies to components written in `.astro` format and happens in the compiler to maximize performance. You can enable with:
```js
import { defineConfig } from 'astro/config';
export default defineConfig({
compressHTML: true
});
```
Compression occurs both in development mode and in the final build.