mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 01:41:23 +02:00
New calculator app with standard, scientific, programmer, unit converter, currency, finance, date, and percentage modes. Includes 5 visual skins: Modern, HP-35 (1972), Casio fx (1985), TI-84 (2004), and Minimal. Local-first with IndexedDB history, keyboard support, safe math parser. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
33 lines
770 B
TypeScript
33 lines
770 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
|
import { createPWAConfig } from '@manacore/shared-pwa';
|
|
import { MANACORE_SHARED_PACKAGES, getBuildDefines } from '@manacore/shared-vite-config';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
SvelteKitPWA(
|
|
createPWAConfig({
|
|
name: 'Calc - Taschenrechner',
|
|
shortName: 'Calc',
|
|
description: 'Taschenrechner, Einheiten & Finanzen',
|
|
themeColor: '#ec4899',
|
|
preset: 'minimal',
|
|
})
|
|
),
|
|
],
|
|
server: {
|
|
port: 5198,
|
|
strictPort: true,
|
|
},
|
|
ssr: {
|
|
noExternal: [...MANACORE_SHARED_PACKAGES],
|
|
},
|
|
optimizeDeps: {
|
|
exclude: [...MANACORE_SHARED_PACKAGES],
|
|
},
|
|
define: {
|
|
...getBuildDefines(),
|
|
},
|
|
});
|