strand/vite.config.ts

39 lines
952 B
TypeScript
Raw Normal View History

2025-02-12 23:14:51 +01:00
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";
import { svelte } from "@sveltejs/vite-plugin-svelte";
// https://vite.dev/config/
export default defineConfig({
2025-02-12 23:14:51 +01:00
plugins: [
svelte(),
VitePWA({
injectRegister: "auto",
includeAssets: ["icon512_rounded.png", "icon512_maskable.png"],
manifest: {
theme_color: "#8936FF",
background_color: "#2EC6FE",
icons: [
{
purpose: "maskable",
sizes: "512x512",
src: "icon512_maskable.png",
type: "image/png",
},
{
purpose: "any",
sizes: "512x512",
src: "icon512_rounded.png",
type: "image/png",
},
],
orientation: "portrait",
display: "standalone",
dir: "auto",
lang: "sv-SE",
name: "Strand",
short_name: "strand",
},
}),
],
});