-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
43 lines (40 loc) · 1.16 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
/// <reference types="vitest" />
import path from 'path';
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
import svgr from 'vite-plugin-svgr';
// https://vite.dev/config/
export default defineConfig({
plugins: [
svgr(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg'],
manifest: {
name: '프로젝트명', // 설치 배너에 표시되는 이름
short_name: '프로젝트명', // 아이콘 아래에 표시될 이름
description: '프로젝트 설명',
theme_color: '#ffffff',
lang: 'ko',
},
}),
],
resolve: {
alias: [
{ find: '@', replacement: path.resolve(__dirname, 'src') },
{ find: '@assets', replacement: path.resolve(__dirname, 'src/assets') },
{ find: '@common', replacement: path.resolve(__dirname, 'src/common') },
{ find: '@features', replacement: path.resolve(__dirname, 'src/features') },
],
},
server: {
port: 3000,
},
test: {
coverage: {
provider: 'v8',
},
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
},
});