Skip to content

Commit a46af30

Browse files
committed
Add astro-compress.
1 parent 2b40ce2 commit a46af30

File tree

5 files changed

+434
-85
lines changed

5 files changed

+434
-85
lines changed

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import deleteUnusedImages from "astro-delete-unused-images";
1313
import preload from "astro-preload";
1414
import { execSync } from "node:child_process";
1515

16+
import compress from "astro-compress";
17+
1618
let gitVersion = String(process.env.GIT_VERSION ?? "").slice(0, 7);
1719

1820
if (!gitVersion) {
@@ -88,6 +90,7 @@ export default defineConfig({
8890
metaTags(),
8991
pagefind(),
9092
deleteUnusedImages(),
93+
compress(),
9194
],
9295
output: "static",
9396
build: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@types/react": "^19.1.2",
2424
"@types/react-dom": "^19.1.3",
2525
"astro": "^5.7.5",
26+
"astro-compress": "^2.3.8",
2627
"astro-delete-unused-images": "^1.0.3",
2728
"astro-meta-tags": "^0.3.1",
2829
"astro-pagefind": "^1.8.3",

0 commit comments

Comments
 (0)