mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat: add service worker
This commit is contained in:
@@ -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(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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
1902
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user