Disable compression and critters, compress HTML and inline stylesheets automatically

This commit is contained in:
Max Schmidt 2023-07-11 17:55:41 +02:00
parent ce85368029
commit 99fd68aa31
2 changed files with 4 additions and 6 deletions

View File

@ -1,12 +1,14 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import image from "@astrojs/image";
import compress from "astro-compress";
import critters from "astro-critters";
import sitemap from "@astrojs/sitemap";
import prefetch from "@astrojs/prefetch";
export default defineConfig({
compressHTML: true,
build: {
inlineStylesheets: "auto",
},
integrations: [
tailwind({
config: {
@ -16,8 +18,6 @@ export default defineConfig({
image({
serviceEntryPoint: "@astrojs/image/sharp",
}),
compress(),
critters(),
sitemap(),
prefetch(),
],

View File

@ -14,8 +14,6 @@
"@astrojs/sitemap": "^1.3.3",
"@astrojs/tailwind": "4.0.0",
"astro": "^2.8.0",
"astro-compress": "^1.1.49",
"astro-critters": "^1.1.39",
"css-select": "5.1.0",
"sharp": "^0.32.1",
"slate-serializers": "0.1.0",