summaryrefslogtreecommitdiff
path: root/.changeset/tiny-snails-dance.md
blob: ef25e0459ef72063b90421d02e05a1986fe67b35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
'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.