Skip to content

Commit e4ac0cd

Browse files
committed
Cleanup react-supabase-todolist vite config.
1 parent fd869fd commit e4ac0cd

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

demos/react-supabase-todolist/vite.config.mts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { fileURLToPath, URL } from 'url';
44

55
import { defineConfig } from 'vite';
66
import react from '@vitejs/plugin-react';
7-
// import { VitePWA } from 'vite-plugin-pwa';
7+
import { VitePWA } from 'vite-plugin-pwa';
88

99
// https://vitejs.dev/config/
1010
export default defineConfig({
@@ -31,41 +31,41 @@ export default defineConfig({
3131
wasm(),
3232
topLevelAwait(),
3333
react()
34-
// VitePWA({
35-
// registerType: 'autoUpdate',
36-
// includeAssets: ['powersync-logo.svg', 'supabase-logo.png', 'favicon.ico'],
37-
// manifest: {
38-
// theme_color: '#c44eff',
39-
// background_color: '#c44eff',
40-
// display: 'standalone',
41-
// scope: '/',
42-
// start_url: '/',
43-
// name: 'PowerSync React Demo',
44-
// short_name: 'PowerSync React',
45-
// icons: [
46-
// {
47-
// src: '/icons/icon-192x192.png',
48-
// sizes: '192x192',
49-
// type: 'image/png'
50-
// },
51-
// {
52-
// src: '/icons/icon-256x256.png',
53-
// sizes: '256x256',
54-
// type: 'image/png'
55-
// },
56-
// {
57-
// src: '/icons/icon-384x384.png',
58-
// sizes: '384x384',
59-
// type: 'image/png'
60-
// },
61-
// {
62-
// src: '/icons/icon-512x512.png',
63-
// sizes: '512x512',
64-
// type: 'image/png'
65-
// }
66-
// ]
67-
// }
68-
// })
34+
VitePWA({
35+
registerType: 'autoUpdate',
36+
includeAssets: ['powersync-logo.svg', 'supabase-logo.png', 'favicon.ico'],
37+
manifest: {
38+
theme_color: '#c44eff',
39+
background_color: '#c44eff',
40+
display: 'standalone',
41+
scope: '/',
42+
start_url: '/',
43+
name: 'PowerSync React Demo',
44+
short_name: 'PowerSync React',
45+
icons: [
46+
{
47+
src: '/icons/icon-192x192.png',
48+
sizes: '192x192',
49+
type: 'image/png'
50+
},
51+
{
52+
src: '/icons/icon-256x256.png',
53+
sizes: '256x256',
54+
type: 'image/png'
55+
},
56+
{
57+
src: '/icons/icon-384x384.png',
58+
sizes: '384x384',
59+
type: 'image/png'
60+
},
61+
{
62+
src: '/icons/icon-512x512.png',
63+
sizes: '512x512',
64+
type: 'image/png'
65+
}
66+
]
67+
}
68+
})
6969
],
7070
worker: {
7171
format: 'es',

0 commit comments

Comments
 (0)