38 lines
952 B
TypeScript
38 lines
952 B
TypeScript
import { defineConfig } from "vite";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
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",
|
|
},
|
|
}),
|
|
],
|
|
});
|