mirror of
https://github.com/kogakure/website-11ty-hamburg.stefanimhoff.de.git
synced 2026-02-03 20:25:30 +00:00
23 lines
478 B
JavaScript
23 lines
478 B
JavaScript
module.exports = {
|
|
globDirectory: 'dist/',
|
|
globPatterns: ['**/*.woff2'],
|
|
swDest: 'dist/sw.js',
|
|
sourcemap: false,
|
|
cleanupOutdatedCaches: true,
|
|
clientsClaim: true,
|
|
skipWaiting: true,
|
|
runtimeCaching: [
|
|
{
|
|
urlPattern: /\.(?:jpg|png|svg|gif|webp|avif)$/,
|
|
handler: 'CacheFirst',
|
|
options: {
|
|
cacheName: 'images',
|
|
expiration: {
|
|
maxEntries: 50,
|
|
maxAgeSeconds: 60 * 60 * 24 * 365,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|