From 472c18a99851397939351dd4cfc50220c84dc4c2 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Fri, 20 Oct 2023 18:08:15 -0500 Subject: Initial skeleton (hehe) commit Signed-off-by: Matt Strapp --- clients/www/vite.config.ts | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 clients/www/vite.config.ts (limited to 'clients/www/vite.config.ts') diff --git a/clients/www/vite.config.ts b/clients/www/vite.config.ts new file mode 100644 index 0000000..ca89d5b --- /dev/null +++ b/clients/www/vite.config.ts @@ -0,0 +1,43 @@ +import { purgeCss } from 'vite-plugin-tailwind-purgecss'; +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vite'; +import { SvelteKitPWA } from '@vite-pwa/sveltekit'; + +export default defineConfig({ + build: { + sourcemap: true + }, + css: { + devSourcemap: false + }, + plugins: [ + sveltekit(), + SvelteKitPWA({ + devOptions: { + enabled: true, + type: 'module' + }, + manifest: { + name: 'Oracle Client', + short_name: 'Oracle Client', + theme_color: '#3EBCC5', + description: "A web-based client for the Oracle of Ages/Seasons password system", + display_override: ["window-controls-overlay", "standalone", "minimal-ui"], + display: "fullscreen", + icons: [ + { + src: "img/pwa-192x192.png", + sizes: "192x192", + type: "image/png", + } + ], + id: "." + }, + registerType: 'autoUpdate', + workbox: { + globPatterns: ['client/**/*.{js,css,html,svg,png}'] + } + }), + purgeCss() + ] +}); -- cgit v1.2.3