-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvite.config.ts
35 lines (33 loc) · 895 Bytes
/
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
import { defineConfig } from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
import * as child_process from 'node:child_process';
if (process.env.VITE_GIT_COMMIT_REF === undefined) {
process.env.VITE_GIT_COMMIT_REF = child_process
.execSync('git rev-parse --short HEAD')
.toString();
}
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
sveltekit(),
SvelteKitPWA({
manifest: {
name: 'Visual Sorting',
short_name: 'VS',
icons: [
{
src: '/visual-sorting/android-chrome-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/visual-sorting/android-chrome-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
},
}),
],
});