Skip to content

Commit

Permalink
Add astro-compress (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov authored Oct 18, 2024
1 parent c97cb29 commit f8d33a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import preact from "@astrojs/preact";
import rehypeExternalLinks from 'rehype-external-links'
import compress from "astro-compress";

import { remarkRemoveMdLinks, remarkRemovePlainLanguageCode, remarkRemoveRepeatHeader, addPrefixImageLink, setLinkReferrer } from './src/utils/frontmatter.mjs';
import { ANALYTICS, SITE } from './src/utils/config.ts';
Expand Down Expand Up @@ -81,7 +82,8 @@ export default defineConfig({
...whenExternalScripts(() =>
partytown({
config: { forward: ['dataLayer.push'] },
})
}),
compress()
),
],
markdown: {
Expand Down Expand Up @@ -112,4 +114,4 @@ export default defineConfig({
'/[...slug].html': '/[...slug]',
'/docs/': '/docs/2023/overview/what-is-sca/',
}
});
});

0 comments on commit f8d33a8

Please sign in to comment.