Skip to content

Commit

Permalink
Cleanup react-supabase-todolist vite config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriztiaan committed Jul 22, 2024
1 parent fd869fd commit 5db3507
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions demos/react-supabase-todolist/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { fileURLToPath, URL } from 'url';

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// import { VitePWA } from 'vite-plugin-pwa';
import { VitePWA } from 'vite-plugin-pwa';

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -30,42 +30,42 @@ export default defineConfig({
plugins: [
wasm(),
topLevelAwait(),
react()
// VitePWA({
// registerType: 'autoUpdate',
// includeAssets: ['powersync-logo.svg', 'supabase-logo.png', 'favicon.ico'],
// manifest: {
// theme_color: '#c44eff',
// background_color: '#c44eff',
// display: 'standalone',
// scope: '/',
// start_url: '/',
// name: 'PowerSync React Demo',
// short_name: 'PowerSync React',
// icons: [
// {
// src: '/icons/icon-192x192.png',
// sizes: '192x192',
// type: 'image/png'
// },
// {
// src: '/icons/icon-256x256.png',
// sizes: '256x256',
// type: 'image/png'
// },
// {
// src: '/icons/icon-384x384.png',
// sizes: '384x384',
// type: 'image/png'
// },
// {
// src: '/icons/icon-512x512.png',
// sizes: '512x512',
// type: 'image/png'
// }
// ]
// }
// })
react(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['powersync-logo.svg', 'supabase-logo.png', 'favicon.ico'],
manifest: {
theme_color: '#c44eff',
background_color: '#c44eff',
display: 'standalone',
scope: '/',
start_url: '/',
name: 'PowerSync React Demo',
short_name: 'PowerSync React',
icons: [
{
src: '/icons/icon-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: '/icons/icon-256x256.png',
sizes: '256x256',
type: 'image/png'
},
{
src: '/icons/icon-384x384.png',
sizes: '384x384',
type: 'image/png'
},
{
src: '/icons/icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
})
],
worker: {
format: 'es',
Expand Down

0 comments on commit 5db3507

Please sign in to comment.