From e4d6cd9f41f8d18e32b8ed5c7966c81ec56ac96d Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 17 Aug 2023 04:55:49 +0300 Subject: [PATCH] Restores astro-compress (#4339) * Restores astro-compress * squash! --- astro.config.mjs | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 56a953840..670aa965d 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,7 +2,7 @@ import preact from '@astrojs/preact'; import sitemap from '@astrojs/sitemap'; import tailwind from '@astrojs/tailwind'; -import compress from '@otterlord/astro-compress'; +import compress from 'astro-compress'; import { defineConfig } from 'astro/config'; import rehypeExternalLinks from 'rehype-external-links'; import { fileURLToPath } from 'node:url'; @@ -72,8 +72,8 @@ export default defineConfig({ serialize: serializeSitemap, }), compress({ - css: false, - js: false, + CSS: false, + JavaScript: false, }), preact(), ], diff --git a/package.json b/package.json index 79e867fdc..7bc3b6a61 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@fingerprintjs/fingerprintjs": "^3.4.1", "@nanostores/preact": "^0.5.0", "astro": "^2.6.6", - "@otterlord/astro-compress": "^1.1.48", + "astro-compress": "^2.0.8", "jose": "^4.14.4", "js-cookie": "^3.0.5", "nanostores": "^0.9.2",