Skip to content
Merged

Dev #396

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion apps/bplan-client/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ export default defineConfig({
plugins: [
unoCss('../../uno.config.ts'),
vitePwa({
includeAssets: ['*.svg', '*.png', 'robots.txt', '*.ogg'],
injectRegister: null,
manifest: false,
registerType: 'prompt',
strategies: 'generateSW',
workbox: {
// Only precache these files - html should be excluded
globPatterns: ['**/*.{js,css}'],

// Don't fallback on document based (e.g. `/some-page`) requests
// Even though this says `null` by default, I had to set this specifically to `null` to make it work
navigateFallback: null,
},
}),
] as any,
resolve: {
Expand Down