From f91961b3578a48744821e2d8b1788d362b0396f7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 14 Aug 2023 12:26:47 +0300 Subject: [PATCH] Restores astro-compress --- astro.config.mjs | 15 +++++++++------ package.json | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 60b35bf..8180135 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,16 +3,17 @@ import { fileURLToPath } from 'url'; import { defineConfig } from 'astro/config'; -import tailwind from '@astrojs/tailwind'; -import sitemap from '@astrojs/sitemap'; import mdx from '@astrojs/mdx'; -import icon from 'astro-icon'; import partytown from '@astrojs/partytown'; -import tasks from "./src/utils/tasks" +import sitemap from '@astrojs/sitemap'; +import tailwind from '@astrojs/tailwind'; +import compress from 'astro-compress'; +import icon from 'astro-icon'; +import tasks from "./src/utils/tasks"; import { readingTimeRemarkPlugin } from './src/utils/frontmatter.mjs'; -import { SITE_CONFIG, ANALYTICS_CONFIG } from './src/utils/config.ts'; +import { ANALYTICS_CONFIG, SITE_CONFIG } from './src/utils/config.ts'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); @@ -62,7 +63,9 @@ export default defineConfig({ }) ), - tasks() + tasks(), + + compress() ], markdown: { diff --git a/package.json b/package.json index 6722697..9e58039 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@typescript-eslint/eslint-plugin": "^6.3.0", "@typescript-eslint/parser": "^6.3.0", "astro": "^2.10.7", + "astro-compress": "^2.0.8", "astro-icon": "^1.0.0-next.2", "eslint": "^8.47.0", "eslint-plugin-astro": "^0.28.0",