updating to make it more mobile optimized, making it a pwa, and testing it out on a phone
This commit is contained in:
+30
-2
@@ -1,9 +1,37 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
includeAssets: ['apple-touch-icon.png', 'icon-192.png', 'icon-512.png'],
|
||||
manifest: {
|
||||
name: 'JamBuddy — WhatTheFlat',
|
||||
short_name: 'JamBuddy',
|
||||
description: 'Real-time key and chord detection for live jams.',
|
||||
theme_color: '#0f0f0f',
|
||||
background_color: '#0f0f0f',
|
||||
display: 'standalone',
|
||||
orientation: 'any',
|
||||
start_url: './',
|
||||
scope: './',
|
||||
icons: [
|
||||
{ src: 'icon-192.png', sizes: '192x192', type: 'image/png', purpose: 'any' },
|
||||
{ src: 'icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any' },
|
||||
{ src: 'icon-512-maskable.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,svg,png,ico,woff2,webmanifest}'],
|
||||
navigateFallback: 'index.html',
|
||||
},
|
||||
}),
|
||||
],
|
||||
base: './', // relative paths so Electron can load files from disk
|
||||
server: {
|
||||
port: 5173,
|
||||
@@ -11,4 +39,4 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
},
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user