diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index 2441238aa..7f2974cc0 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -466,7 +466,6 @@ export interface AstroUserConfig { */ site?: string; - /** * @docs * @name compressHTML diff --git a/packages/astro/src/core/config/schema.ts b/packages/astro/src/core/config/schema.ts index 2948b2fd9..368348f50 100644 --- a/packages/astro/src/core/config/schema.ts +++ b/packages/astro/src/core/config/schema.ts @@ -227,10 +227,7 @@ export function createRelativeSchema(cmd: string, fileProtocolRoot: URL) { .string() .default(ASTRO_CONFIG_DEFAULTS.srcDir) .transform((val) => new URL(appendForwardSlash(val), fileProtocolRoot)), - compressHTML: z - .boolean() - .optional() - .default(ASTRO_CONFIG_DEFAULTS.compressHTML), + compressHTML: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.compressHTML), publicDir: z .string() .default(ASTRO_CONFIG_DEFAULTS.publicDir) diff --git a/packages/astro/test/minification-html.test.js b/packages/astro/test/minification-html.test.js index d53ab5003..818d9a76d 100644 --- a/packages/astro/test/minification-html.test.js +++ b/packages/astro/test/minification-html.test.js @@ -17,8 +17,8 @@ function removeDoctypeLine(html) { * In the dev environment, two more script tags will be injected than in the production environment * so that we can check if the rest of the HTML is without whitespace */ -function removeDoctypeLineInDev(html){ - return html.slice(-100) +function removeDoctypeLineInDev(html) { + return html.slice(-100); } describe('HTML minification', () => { @@ -63,7 +63,7 @@ describe('HTML minification', () => { fixture = await loadFixture({ root: './fixtures/minification-html/', output: 'server', - adapter: testAdapter() + adapter: testAdapter(), }); await fixture.build(); });