-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
39 lines (38 loc) · 1.02 KB
/
vite.config.ts
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
import { sveltekit } from "@sveltejs/kit/vite";
import { SvelteKitPWA } from "@vite-pwa/sveltekit";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [
sveltekit(),
SvelteKitPWA({
strategies: "generateSW",
srcDir: "src",
filename: "service-worker.ts",
manifest: {
name: "Silex",
short_name: "Silex",
start_url: "/",
scope: "/",
display: "standalone",
theme_color: "#000000",
background_color: "#000000",
},
injectManifest: {
globPatterns: ["client/**/*.{js,css,ico,png,svg,webp,woff,woff2}"],
},
workbox: {
globPatterns: ["client/**/*.{js,css,ico,png,svg,webp,woff,woff2}"],
maximumFileSizeToCacheInBytes: 15 * 1024 * 1024,
},
devOptions: {
enabled: true,
suppressWarnings: process.env.SUPPRESS_WARNING === "true",
type: "module",
navigateFallback: "/",
},
kit: {
includeVersionFile: true,
},
}),
],
});