-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
88 lines (87 loc) · 2.46 KB
/
vite.config.ts
File metadata and controls
88 lines (87 loc) · 2.46 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { defineConfig } from "vite";
import AutoImport from "unplugin-auto-import/vite";
import Component from "unplugin-vue-components/vite";
import { unheadVueComposablesImports } from "@unhead/vue";
import Tailwindcss from "@tailwindcss/vite";
import Vue from "@vitejs/plugin-vue";
import VueRouter from "unplugin-vue-router/vite";
import { VueRouterAutoImports } from "unplugin-vue-router";
import { VitePWA } from "vite-plugin-pwa";
import WebfontDownload from "vite-plugin-webfont-dl";
// https://vite.dev/config/
export default defineConfig({
plugins: [
VueRouter({ extensions: [".vue"], dts: "src/typed-router.d.ts" }),
AutoImport({
imports: [
"vue",
"@vueuse/core",
VueRouterAutoImports,
unheadVueComposablesImports,
],
dts: "src/auto-imports.d.ts",
dirs: ["src/stores", "src/composables"],
}),
Component({
extensions: ["vue"],
include: [/\.vue$/, /\.vue\?vue/],
dts: "src/components.d.ts",
}),
Tailwindcss(),
Vue(),
WebfontDownload(),
VitePWA({
registerType: "autoUpdate",
includeAssets: [
"favicon.ico",
"apple-touch-icon.png",
"images/logo.webp",
],
manifest: {
name: "SDA Hymns",
short_name: "SDA Hymns",
description:
"Explore the complete Seventh-day Adventist hymnal online. Search, browse, and sing along with your favourite hymns, all in an elegant and fast-loading Vue 3 experience. Worship made simple—visit now!",
icons: [
{
src: "/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
],
theme_color: "#ffffff",
background_color: "#ffffff",
start_url: "/",
scope: "/",
lang: "en",
display: "standalone",
},
workbox: {
runtimeCaching: [
{
urlPattern: /^\/.*/,
handler: "CacheFirst",
options: {
cacheName: "app-shell",
expiration: {
maxEntries: 50,
maxAgeSeconds: 30 * 24 * 60 * 60, // 30 days
},
},
},
],
},
}),
],
});