From 99fd68aa31a4df89f23eeb67cb521efb5cc1d443 Mon Sep 17 00:00:00 2001 From: Max Schmidt Date: Tue, 11 Jul 2023 17:55:41 +0200 Subject: [PATCH] Disable compression and critters, compress HTML and inline stylesheets automatically --- astro/astro.config.mjs | 8 ++++---- astro/package.json | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/astro/astro.config.mjs b/astro/astro.config.mjs index ac271d4..5aba2ca 100644 --- a/astro/astro.config.mjs +++ b/astro/astro.config.mjs @@ -1,12 +1,14 @@ import { defineConfig } from "astro/config"; import tailwind from "@astrojs/tailwind"; import image from "@astrojs/image"; -import compress from "astro-compress"; -import critters from "astro-critters"; import sitemap from "@astrojs/sitemap"; import prefetch from "@astrojs/prefetch"; export default defineConfig({ + compressHTML: true, + build: { + inlineStylesheets: "auto", + }, integrations: [ tailwind({ config: { @@ -16,8 +18,6 @@ export default defineConfig({ image({ serviceEntryPoint: "@astrojs/image/sharp", }), - compress(), - critters(), sitemap(), prefetch(), ], diff --git a/astro/package.json b/astro/package.json index a8cf4ad..d70f42f 100644 --- a/astro/package.json +++ b/astro/package.json @@ -14,8 +14,6 @@ "@astrojs/sitemap": "^1.3.3", "@astrojs/tailwind": "4.0.0", "astro": "^2.8.0", - "astro-compress": "^1.1.49", - "astro-critters": "^1.1.39", "css-select": "5.1.0", "sharp": "^0.32.1", "slate-serializers": "0.1.0",