Use astro-compress integration

This commit is contained in:
prototypa
2023-01-01 18:46:48 -05:00
parent 6c0fda99ce
commit ba0e67b55f
2 changed files with 15 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import sitemap from '@astrojs/sitemap';
import image from '@astrojs/image';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import compress from 'astro-compress';
import { remarkReadingTime } from './src/utils/frontmatter.mjs';
import { SITE } from './src/config.mjs';
@ -41,6 +42,16 @@ export default defineConfig({
config: { forward: ['dataLayer.push'] },
})
),
compress({
css: true,
html: true,
img: false,
js: true,
svg: false,
logger: 1,
}),
],
markdown: {

View File

@ -1,7 +1,7 @@
{
"name": "@onwidget/astrowind",
"description": "A template to make your website using Astro + Tailwind CSS.",
"version": "0.9.0",
"version": "0.9.1",
"private": true,
"scripts": {
"dev": "astro dev",
@ -27,6 +27,7 @@
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"astro": "^1.8.0",
"astro-compress": "1.1.24",
"astro-icon": "^0.8.0",
"eslint": "^8.30.0",
"eslint-plugin-astro": "^0.21.1",