diff --git a/.changeset/tiny-snails-dance.md b/.changeset/tiny-snails-dance.md new file mode 100644 index 000000000..2500ae825 --- /dev/null +++ b/.changeset/tiny-snails-dance.md @@ -0,0 +1,5 @@ +--- +'astro': minor +--- + +minification the HTML diff --git a/packages/astro/package.json b/packages/astro/package.json index 82567a65f..d0e07af52 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -99,7 +99,6 @@ "dev": "astro-scripts dev --copy-wasm --prebuild \"src/runtime/server/astro-island.ts\" --prebuild \"src/runtime/client/{idle,load,media,only,visible}.ts\" \"src/**/*.{ts,js}\"", "postbuild": "astro-scripts copy \"src/**/*.astro\" && astro-scripts copy \"src/**/*.wasm\"", "test:unit": "mocha --exit --timeout 30000 ./test/units/**/*.test.js", - "t": "mocha --exit --timeout 30000 ./test/astro-minification-html.test.js", "test:unit:match": "mocha --exit --timeout 30000 ./test/units/**/*.test.js -g", "test": "pnpm run test:unit && mocha --exit --timeout 20000 --ignore **/lit-element.test.js && mocha --timeout 20000 **/lit-element.test.js", "test:match": "mocha --timeout 20000 -g", diff --git a/packages/astro/test/fixtures/minification-html/astro.config.mjs b/packages/astro/test/fixtures/minification-html/astro.config.mjs index 2ca64ab30..4cc49df62 100644 --- a/packages/astro/test/fixtures/minification-html/astro.config.mjs +++ b/packages/astro/test/fixtures/minification-html/astro.config.mjs @@ -2,5 +2,6 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ - compressHTML: true + compressHTML: true, + });