feat: add service worker

This commit is contained in:
Stefan Imhoff
2023-06-13 12:17:43 +02:00
parent 051ac3a3ee
commit 74e77b8d25
3 changed files with 1805 additions and 100 deletions

View File

@@ -6,6 +6,7 @@ import tailwind from '@astrojs/tailwind';
import { astroImageTools } from 'astro-imagetools';
import webmanifest from 'astro-webmanifest';
import { defineConfig } from 'astro/config';
import serviceWorker from 'astrojs-service-worker';
import { site } from './src/data/site';
import { remarkReadingTime, remarkWidont } from './src/utils';
@@ -55,5 +56,6 @@ export default defineConfig({
background_color: '#e7e6e4',
display: 'standalone',
}),
serviceWorker(),
],
});