Family bookkeeping PWA modelled on 木木记账
Hono + SQLite server and a React/shadcn PWA with two-level categories, who-spent/who-paid splits, settlement, one-line and voice entry, budget alerts (Web Push and Bark), monthly/annual reports, and 木木 import tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import path from 'node:path'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from 'vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
tailwindcss(),
|
||||
VitePWA({
|
||||
strategies: 'injectManifest',
|
||||
srcDir: 'src',
|
||||
filename: 'sw.ts',
|
||||
registerType: 'autoUpdate',
|
||||
injectManifest: { globPatterns: ['**/*.{js,css,html,png,svg,woff2}'] },
|
||||
manifest: {
|
||||
name: '家庭记账',
|
||||
short_name: '记账',
|
||||
lang: 'zh-CN',
|
||||
display: 'standalone',
|
||||
start_url: '/',
|
||||
background_color: '#f6f7f9',
|
||||
theme_color: '#f6f7f9',
|
||||
icons: [
|
||||
{ src: '/app-icon-192.png', sizes: '192x192', type: 'image/png' },
|
||||
{ src: '/app-icon-512.png', sizes: '512x512', type: 'image/png' },
|
||||
{ src: '/app-icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
resolve: { alias: { '@': path.resolve(import.meta.dirname, './src') } },
|
||||
server: { proxy: { '/api': 'http://localhost:3000' } },
|
||||
})
|
||||
Reference in New Issue
Block a user