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

View File

@@ -28,6 +28,7 @@
"astro-imagetools": "^0.8.1", "astro-imagetools": "^0.8.1",
"astro-seo": "^0.7.4", "astro-seo": "^0.7.4",
"astro-webmanifest": "^0.6.0", "astro-webmanifest": "^0.6.0",
"astrojs-service-worker": "^1.0.0",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"chart.js": "^4.3.0", "chart.js": "^4.3.0",
"chartjs-plugin-autocolors": "^0.2.2", "chartjs-plugin-autocolors": "^0.2.2",

1902
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff