Add astro-compress dependency

This commit is contained in:
prototypa
2024-01-27 12:31:53 -05:00
parent d7d7233641
commit 108bdd6201
2 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import icon from 'astro-icon';
import compress from 'astro-compress';
import tasks from './src/utils/tasks';
import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin } from './src/utils/frontmatter.mjs';
@ -59,6 +60,19 @@ export default defineConfig({
})
),
compress({
CSS: true,
HTML: {
'html-minifier-terser': {
removeAttributeQuotes: false,
},
},
Image: false,
JavaScript: true,
SVG: false,
Logger: 1,
}),
tasks(),
],