diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-06 01:22:55 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-06 01:22:55 -0400 |
commit | 2d2cf6d378d92aac31b3b09506bc6310466a0b07 (patch) | |
tree | a06c0135171256e9f28512dc840976615e802675 /vite.config.js | |
parent | c35801d00fef528a87d226ed9e48cd3ba7856c50 (diff) | |
parent | 240633177cc646e6662f27e1334b5e83d962170d (diff) | |
download | donetick-frontend-2d2cf6d378d92aac31b3b09506bc6310466a0b07.tar.gz donetick-frontend-2d2cf6d378d92aac31b3b09506bc6310466a0b07.tar.bz2 donetick-frontend-2d2cf6d378d92aac31b3b09506bc6310466a0b07.zip |
- Add Cookie Permission component
- Add Filter button instead of chips in mychores view
- show except days instead of showing evenything when days.length>4
Diffstat (limited to 'vite.config.js')
-rw-r--r-- | vite.config.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js index 5af4b6f..f8e9fde 100644 --- a/vite.config.js +++ b/vite.config.js @@ -14,7 +14,10 @@ export default defineConfig({ 'safari-pinned-tab.svg', 'mstile-150x150.png', ], - injectManifest: true, + injectManifest: { + globPatterns: ['**/*.{js,css,html,png,svg}'], + globIgnores: ['index.html'], + }, manifest: { name: 'Donetick: Simplify Tasks & Chores, Together.', short_name: 'Donetick', @@ -55,6 +58,10 @@ export default defineConfig({ background_color: '#ffffff', display: 'standalone', }, + workbox: { + skipWaiting: true, // Force the waiting service worker to become the active service worker + clientsClaim: true, // Take control of uncontrolled clients as soon as the service worker becomes active + }, }), ], |