Update astro.config.mjs and add astro-critters package
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.
This commit is contained in:
parent
8e3bd5b87c
commit
e0cec536e7
3 changed files with 941 additions and 5 deletions
|
@ -4,15 +4,20 @@ 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"],
|
||||
domains: ["images.unsplash.com"]
|
||||
},
|
||||
prefetch: true,
|
||||
integrations: [tailwind(), sitemap(), compressor({ gzip: false, brotli: true })],
|
||||
integrations: [tailwind(), sitemap(), compressor({
|
||||
gzip: false,
|
||||
brotli: true
|
||||
}), critters()],
|
||||
output: 'static',
|
||||
experimental: {
|
||||
clientPrerender: true,
|
||||
|
|
936
package-lock.json
generated
936
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -16,6 +16,7 @@
|
|||
"@astrojs/vercel": "^7.3.6",
|
||||
"astro": "^4.5.3",
|
||||
"astro-compressor": "^0.4.1",
|
||||
"astro-critters": "^2.1.4",
|
||||
"globby": "^14.0.1",
|
||||
"gsap": "^3.12.5",
|
||||
"html-minifier": "^4.0.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue