Replace the hello-world shell with the elevated design system, bilingual screens, recipe/extras data, and the interactive Mein Teller view. Co-authored-by: Cursor <cursoragent@cursor.com>
63 lines
1.5 KiB
TypeScript
63 lines
1.5 KiB
TypeScript
import path from 'node:path'
|
||
import { defineConfig } from 'vite'
|
||
import react from '@vitejs/plugin-react'
|
||
import tailwindcss from '@tailwindcss/vite'
|
||
import { VitePWA } from 'vite-plugin-pwa'
|
||
|
||
// https://vite.dev/config/
|
||
export default defineConfig({
|
||
plugins: [
|
||
react(),
|
||
tailwindcss(),
|
||
VitePWA({
|
||
registerType: 'autoUpdate',
|
||
includeAssets: ['favicon.svg', 'favicon.ico', 'apple-touch-icon-180x180.png'],
|
||
manifest: {
|
||
name: 'Pocket Pascal',
|
||
short_name: 'Pocket Pascal',
|
||
description: 'Nutrition decision aid based on Pascal’s building-block plate system.',
|
||
theme_color: '#fafaf7',
|
||
background_color: '#fafaf7',
|
||
display: 'standalone',
|
||
start_url: '/',
|
||
icons: [
|
||
{
|
||
src: 'pwa-64x64.png',
|
||
sizes: '64x64',
|
||
type: 'image/png',
|
||
},
|
||
{
|
||
src: 'pwa-192x192.png',
|
||
sizes: '192x192',
|
||
type: 'image/png',
|
||
},
|
||
{
|
||
src: 'pwa-512x512.png',
|
||
sizes: '512x512',
|
||
type: 'image/png',
|
||
},
|
||
{
|
||
src: 'maskable-icon-512x512.png',
|
||
sizes: '512x512',
|
||
type: 'image/png',
|
||
purpose: 'maskable',
|
||
},
|
||
],
|
||
},
|
||
}),
|
||
],
|
||
resolve: {
|
||
alias: {
|
||
'@': path.resolve(import.meta.dirname, './src'),
|
||
},
|
||
},
|
||
server: {
|
||
proxy: {
|
||
'/api': {
|
||
target: 'http://localhost:3001',
|
||
changeOrigin: true,
|
||
},
|
||
},
|
||
},
|
||
})
|