From aeb2aaeca86ccf6606bd829835219bc240334514 Mon Sep 17 00:00:00 2001 From: widgeter <106940567+widgeter@users.noreply.github.com> Date: Mon, 14 Aug 2023 09:02:21 -0400 Subject: [PATCH] Add settings to astro compress --- astro.config.mjs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 8180135..02f5715 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,10 +3,10 @@ import { fileURLToPath } from 'url'; import { defineConfig } from 'astro/config'; -import mdx from '@astrojs/mdx'; -import partytown from '@astrojs/partytown'; import sitemap from '@astrojs/sitemap'; import tailwind from '@astrojs/tailwind'; +import mdx from '@astrojs/mdx'; +import partytown from '@astrojs/partytown'; import compress from 'astro-compress'; import icon from 'astro-icon'; import tasks from "./src/utils/tasks"; @@ -30,14 +30,12 @@ export default defineConfig({ trailingSlash: SITE_CONFIG.trailingSlash ? 'always' : 'never', output: 'static', - compressHTML: true, integrations: [ tailwind({ applyBaseStyles: false, }), sitemap(), - mdx(), icon({ include: { @@ -65,7 +63,17 @@ export default defineConfig({ tasks(), - compress() + compress({ + css: true, + html: { + removeAttributeQuotes: false, + }, + img: false, + js: true, + svg: true, + + logger: 1, + }), ], markdown: {