@@ 1,6 1,8 @@
import { defineConfig } from 'astro/config';
import compress from "astro-compress";
+import compressor from "astro-compressor";
+
// https://astro.build/config
export default defineConfig({
markdown: {
@@ 8,13 10,11 @@ export default defineConfig({
theme: "github-dark-dimmed"
}
},
- integrations: [
- compress({
- css: true,
- html: true,
- img: false,
- js: true,
- svg: false,
- })
- ]
+ integrations: [compress({
+ css: true,
+ html: true,
+ img: false,
+ js: true,
+ svg: false
+ }), compressor({gzip: true, brotli: true})]
});
@@ 12,7 12,8 @@
"dependencies": {
"@astrojs/rss": "^2.4.0",
"astro": "^2.3.0",
- "astro-compress": "^1.1.42"
+ "astro-compress": "^1.1.42",
+ "astro-compressor": "^0.4.0"
},
"devDependencies": {
"typescript": "^5.0.4"