feat: change compressHTML
default value to true
(#7918)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
parent
7511a4980f
commit
f32d093a28
3 changed files with 15 additions and 2 deletions
14
.changeset/unlucky-ravens-type.md
Normal file
14
.changeset/unlucky-ravens-type.md
Normal 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
|
||||||
|
})
|
||||||
|
```
|
|
@ -29,7 +29,7 @@ const ASTRO_CONFIG_DEFAULTS = {
|
||||||
split: false,
|
split: false,
|
||||||
excludeMiddleware: false,
|
excludeMiddleware: false,
|
||||||
},
|
},
|
||||||
compressHTML: false,
|
compressHTML: true,
|
||||||
server: {
|
server: {
|
||||||
host: false,
|
host: false,
|
||||||
port: 4321,
|
port: 4321,
|
||||||
|
|
|
@ -11,7 +11,6 @@ describe('astro:ssr-manifest', () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
root: './fixtures/ssr-manifest/',
|
root: './fixtures/ssr-manifest/',
|
||||||
output: 'server',
|
output: 'server',
|
||||||
compressHTML: true,
|
|
||||||
adapter: testAdapter(),
|
adapter: testAdapter(),
|
||||||
});
|
});
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
|
|
Loading…
Add table
Reference in a new issue