feat: change compressHTML default value to true (#7918)

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
Emanuele Stoppa 2023-08-03 12:19:18 +01:00
parent 7511a4980f
commit f32d093a28
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,14 @@
---
'astro': major
---
The property `compressHTML` is now `true` by default. Setting this value to `true` is no longer required.
If you do not want to minify your HTML output, you must set this value to `false` in `astro.config.mjs`.
```diff
import {defineConfig} from "astro/config";
export default defineConfig({
+ compressHTML: false
})
```

View file

@ -29,7 +29,7 @@ const ASTRO_CONFIG_DEFAULTS = {
split: false,
excludeMiddleware: false,
},
compressHTML: false,
compressHTML: true,
server: {
host: false,
port: 4321,

View file

@ -11,7 +11,6 @@ describe('astro:ssr-manifest', () => {
fixture = await loadFixture({
root: './fixtures/ssr-manifest/',
output: 'server',
compressHTML: true,
adapter: testAdapter(),
});
await fixture.build();