This commit is contained in:
2023-07-07 12:45:21 +02:00
parent d63cf541fb
commit bb3861272c
11 changed files with 177 additions and 48 deletions

34
vite.config.ts Normal file
View File

@@ -0,0 +1,34 @@
import {defineConfig} from "vite"
import {SvelteKitPWA} from "@vite-pwa/sveltekit"
// noinspection ES6PreferShortImport
import {themeColor} from "./src/lib/style/theme.server"
import {sveltekit} from "@sveltejs/kit/vite"
export default defineConfig({
plugins: [
sveltekit(),
SvelteKitPWA({
kit: {
trailingSlash: "always",
},
scope: "/",
base: "/",
includeAssets: ["favicon.png"],
workbox: {
globPatterns: ["**/*.{js,css,html,woff2,json,csv,png,svg}"],
},
manifest: {
name: "dot i/o",
id: "dot_io_v2",
theme_color: themeColor,
icons: [
{
src: "icon.svg",
sizes: "144x144",
type: "image/svg+xml",
},
],
},
}),
],
})