-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
43 lines (41 loc) · 1.08 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2022 Ivan Teplov
import { defineConfig } from "vite"
import { svelte } from "@sveltejs/vite-plugin-svelte"
import { VitePWA } from "vite-plugin-pwa"
import svelteSVG from "vite-plugin-svelte-svg"
export default defineConfig({
plugins: [
svelteSVG({
svgoConfig: {},
// don't require appending `?component` when importing SVG
requireSuffix: false
}),
svelte({}),
VitePWA({
registerType: "prompt",
manifest: {
name: "Loyalty Cards Wallet",
lang: undefined,
short_name: "Wallet",
description: "One place for all of your loyalty cards",
background_color: "#000",
theme_color: "#4d4bf1",
categories: ["finance", "shopping"],
icons: [
{
src: "icons/192.png",
sizes: "192x192",
type: "image/png",
purpose: "any maskable"
},
{
src: "icons/512.png",
sizes: "512x512",
type: "image/png",
purpose: "any maskable"
}
]
}
})
]
})