1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-02 22:02:39 +02:00

Add compress HTML

This commit is contained in:
Kamran Ahmed
2023-01-05 19:24:42 +04:00
parent 86a1a4a078
commit af27626a1c
3 changed files with 402 additions and 10 deletions

View File

@@ -1,13 +1,11 @@
// https://astro.build/config
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import rehypeExternalLinks from 'rehype-external-links';
import sitemap from '@astrojs/sitemap';
import critters from 'astro-critters';
import tailwind from '@astrojs/tailwind';
import compress from 'astro-compress';
import { defineConfig } from 'astro/config';
import rehypeExternalLinks from 'rehype-external-links';
import { serializeSitemap, shouldIndexPage } from './sitemap.mjs';
// https://astro.build/config
export default defineConfig({
site: 'https://roadmap.sh',
markdown: {
@@ -30,6 +28,9 @@ export default defineConfig({
filter: shouldIndexPage,
serialize: serializeSitemap,
}),
// critters(),
compress({
css: false,
js: false,
}),
],
});