-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
102 lines (101 loc) · 2.6 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/// <reference types="vitest" />
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { resolve } from 'path'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte(),
VitePWA({
includeAssets: ['resources/fonts/*.otf'],
manifest: {
name: '한들 - 모아쓰는 한글 워들',
short_name: '한들',
description:
'모아쓰는 한글 워들. 한글 단어를 정해진 횟수 안에 맞춰보세요! 다양한 플레이 모드가 준비되어 있어요.',
categories: ['games'],
screenshots: [
{
src: './resources/images/wide-icon.png',
sizes: '1024x500',
type: 'image/png',
},
{
src: './resources/images/screenshot01.png',
sizes: '990x1760',
type: 'image/png',
},
{
src: './resources/images/screenshot02.png',
sizes: '990x1760',
type: 'image/png',
},
{
src: './resources/images/screenshot03.png',
sizes: '990x1760',
type: 'image/png',
},
{
src: './resources/images/screenshot04.png',
sizes: '990x1760',
type: 'image/png',
},
],
related_applications: [],
prefer_related_applications: true,
lang: 'ko',
theme_color: '#292c34',
background_color: '#292c34',
icons: [
{
src: './resources/icons/icon-192.png',
type: 'image/png',
sizes: '192x192',
},
{
src: './resources/icons/icon-512.png',
type: 'image/png',
sizes: '512x512',
},
{
src: './resources/icons/icon-maskable-192.png',
type: 'image/png',
sizes: '192x192',
purpose: 'maskable',
},
{
src: './resources/icons/icon-maskable-512.png',
type: 'image/png',
sizes: '512x512',
purpose: 'maskable',
},
],
start_url: './',
scope: '.',
display: 'standalone',
},
}),
],
resolve: {
alias: {
'@': resolve(__dirname, './src'),
},
},
server: {
port: 8080,
},
test: {
globals: true,
deps: {
optimizer: {
web: {
include: ['opentype.js'],
},
},
},
environment: 'jsdom',
setupFiles: './vitest.setup.cjs',
testTimeout: 20000,
},
})