37 lines
885 B
TypeScript
37 lines
885 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
|
|
export default defineConfig({
|
|
base: "/app/",
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
manifest: {
|
|
name: "Fitness Tracker",
|
|
short_name: "Fitness",
|
|
description: "Minimaler Workout-Tracker",
|
|
theme_color: "#030712",
|
|
background_color: "#030712",
|
|
display: "standalone",
|
|
start_url: "/app/",
|
|
scope: "/app/",
|
|
icons: [
|
|
{
|
|
src: "/icon-192.png",
|
|
sizes: "192x192",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "/icon-512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
},
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
}); |