Skip to content

Commit

Permalink
compression testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joevaugh4n committed Aug 9, 2024
1 parent 6f6f4d2 commit 605e396
Show file tree
Hide file tree
Showing 8 changed files with 584 additions and 158 deletions.
39 changes: 29 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import icon from 'astro-icon';
import starlight from '@astrojs/starlight';
import react from '@astrojs/react';
import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind'
import icon from 'astro-icon'
import starlight from '@astrojs/starlight'
import react from '@astrojs/react'

import compress from 'astro-compress'

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), icon(), starlight({
title: 'Adam Koszary docs',
disable404Route: true
}), react()],
integrations: [
tailwind(),
icon(),
starlight({
title: 'Adam Koszary docs',
disable404Route: true
}),
react(),
(await import('astro-compress')).default({
CSS: false,
HTML: {
'html-minifier-terser': {
removeAttributeQuotes: false
}
},
CSS: true,
Image: true,
JavaScript: true,
SVG: true
})
],
server: {
proxy: {
'/wp-admin': {
Expand Down Expand Up @@ -39,4 +58,4 @@ export default defineConfig({
}
}
}
});
})
Loading

0 comments on commit 605e396

Please sign in to comment.