Skip to content

Commit e97a778

Browse files
committed
Automatically compress json when building the server
1 parent 96372f1 commit e97a778

File tree

10 files changed

+1826
-36
lines changed

10 files changed

+1826
-36
lines changed

astro.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
77
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
88
// @ts-expect-error shut
99
import { server as wisp } from "@mercuryworkshop/wisp-js/server";
10+
import compress from "@playform/compress";
1011
import { uvPath } from "@titaniumnetwork-dev/ultraviolet";
1112
import { defineConfig } from "astro/config";
1213
import { viteStaticCopy } from "vite-plugin-static-copy";
@@ -17,7 +18,12 @@ export default defineConfig({
1718
adapter: node({
1819
mode: "middleware",
1920
}),
20-
integrations: [tailwind({ applyBaseStyles: false })],
21+
integrations: [
22+
tailwind({ applyBaseStyles: false }),
23+
compress({
24+
Image: false,
25+
}),
26+
],
2127
prefetch: {
2228
defaultStrategy: "viewport",
2329
prefetchAll: false,

biome.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"rules": {
77
"recommended": true
88
},
9-
"includes": ["**", "!**/pnpm-lock.yaml", "!**/dist/**", "!**/node_modules/**", "!**/assets/bundled/**", "!**/*.min.json", "!**/.astro/**"]
9+
"includes": ["**", "!**/pnpm-lock.yaml", "!**/dist/**", "!**/node_modules/**", "!**/assets/bundled/**", "!**/.astro/**"]
1010
},
1111
"formatter": {
1212
"indentStyle": "space",
1313
"indentWidth": 2,
1414
"lineEnding": "lf",
1515
"lineWidth": 320,
1616
"attributePosition": "auto",
17-
"includes": ["**", "!**/pnpm-lock.yaml", "!**/dist/**", "!**/node_modules/**", "!**/assets/bundled/**", "!**/*.min.json", "!**/.astro/**"]
17+
"includes": ["**", "!**/pnpm-lock.yaml", "!**/dist/**", "!**/node_modules/**", "!**/assets/bundled/**", "!**/.astro/**"]
1818
},
1919
"javascript": {
2020
"formatter": {

0 commit comments

Comments
 (0)