@devries-cameron20 / OCIU-npo Mirror · read-only
Fork 0

Mirrored from https://github.com/Camo67/OCIU-npo.git

Synced Nov 21, 03:37 UTC

1 import { defineConfig } from "vite";
2 import react from "@vitejs/plugin-react-swc";
3 import path from "path";
4 import { componentTagger } from "lovable-tagger";
5 import { VitePWA } from "vite-plugin-pwa";
6
7 // https://vitejs.dev/config/
8 export default defineConfig(({ mode }) => ({
9 server: {
10 host: "::",
11 port: 8080,
12 },
13 plugins: [
14 react(),
15 mode === "development" && componentTagger(),
16 VitePWA({
17 registerType: 'autoUpdate',
18 includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
19 manifest: {
20 name: 'CamoFlow OS',
21 short_name: 'CamoFlow',
22 description: 'Local-first AI Operating System',
23 theme_color: '#000000',
24 icons: [
25 {
26 src: 'pwa-192x192.png',
27 sizes: '192x192',
28 type: 'image/png'
29 },
30 {
31 src: 'pwa-512x512.png',
32 sizes: '512x512',
33 type: 'image/png'
34 },
35 {
36 src: 'pwa-512x512.png',
37 sizes: '512x512',
38 type: 'image/png',
39 purpose: 'any maskable'
40 }
41 ]
42 }
43 })
44 ].filter(Boolean),
45 resolve: {
46 alias: {
47 "@": path.resolve(__dirname, "./src"),
48 },
49 },
50 }));