42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
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(),
|
|
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,
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
},
|
|
}) |