feat(swup): upgrade to swup 4 with Astro integration

This commit is contained in:
Stefan Imhoff
2024-03-12 20:46:09 +01:00
parent d8adbaf7d8
commit 983cef3cad
4 changed files with 327 additions and 1267 deletions

View File

@@ -3,6 +3,7 @@ import preact from '@astrojs/preact';
import prefetch from '@astrojs/prefetch';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import swup from '@swup/astro';
import { astroImageTools } from 'astro-imagetools';
import pagefind from 'astro-pagefind';
import webmanifest from 'astro-webmanifest';
@@ -31,6 +32,7 @@ export default defineConfig({
preact({
compat: true,
}),
swup({ globalInstance: true }),
astroImageTools,
prefetch(),
pagefind(),