Skip to content

Commit 99fd68a

Browse files
committed
Disable compression and critters, compress HTML and inline stylesheets automatically
1 parent ce85368 commit 99fd68a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

astro/astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { defineConfig } from "astro/config";
22
import tailwind from "@astrojs/tailwind";
33
import image from "@astrojs/image";
4-
import compress from "astro-compress";
5-
import critters from "astro-critters";
64
import sitemap from "@astrojs/sitemap";
75
import prefetch from "@astrojs/prefetch";
86

97
export default defineConfig({
8+
compressHTML: true,
9+
build: {
10+
inlineStylesheets: "auto",
11+
},
1012
integrations: [
1113
tailwind({
1214
config: {
@@ -16,8 +18,6 @@ export default defineConfig({
1618
image({
1719
serviceEntryPoint: "@astrojs/image/sharp",
1820
}),
19-
compress(),
20-
critters(),
2121
sitemap(),
2222
prefetch(),
2323
],

astro/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
"@astrojs/sitemap": "^1.3.3",
1515
"@astrojs/tailwind": "4.0.0",
1616
"astro": "^2.8.0",
17-
"astro-compress": "^1.1.49",
18-
"astro-critters": "^1.1.39",
1917
"css-select": "5.1.0",
2018
"sharp": "^0.32.1",
2119
"slate-serializers": "0.1.0",

0 commit comments

Comments
 (0)