Added the astro-critters package to improve critical CSS inlining and prioritization. This update involves changes to both the astro.config.mjs to import the package and set it up for integration, and package.json along with package-lock.json to add the package.
27 lines
No EOL
733 B
JavaScript
27 lines
No EOL
733 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import tailwind from "@astrojs/tailwind";
|
|
import vercelStatic from '@astrojs/vercel/static';
|
|
import sitemap from "@astrojs/sitemap";
|
|
import compressor from "astro-compressor";
|
|
|
|
import critters from "astro-critters";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
// https://docs.astro.build/en/guides/images/#authorizing-remote-images
|
|
site: 'https://screwfast.uk',
|
|
image: {
|
|
domains: ["images.unsplash.com"]
|
|
},
|
|
prefetch: true,
|
|
integrations: [tailwind(), sitemap(), compressor({
|
|
gzip: false,
|
|
brotli: true
|
|
}), critters()],
|
|
output: 'static',
|
|
experimental: {
|
|
clientPrerender: true,
|
|
directRenderScript: true
|
|
},
|
|
adapter: vercelStatic()
|
|
}); |