-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathvite.config.ts
More file actions
41 lines (39 loc) · 880 Bytes
/
vite.config.ts
File metadata and controls
41 lines (39 loc) · 880 Bytes
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
/// <reference types="vitest" />
import tailwindcss from '@tailwindcss/vite';
import { VitePWA } from 'vite-plugin-pwa';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import path from 'path';
// https://vite.dev/config/
export default defineConfig({
base: '/',
// For developer testing on the Safari
// server: {
// host: '127.0.0.1',
// },
plugins: [
react(),
tailwindcss(),
VitePWA({
manifest: false,
registerType: 'autoUpdate',
injectRegister: 'script-defer',
workbox: {
globPatterns: ['**/*.{js,css,html,jpeg,jpg,png,svg}']
},
devOptions: {
enabled: false
}
})
],
test: {
globals: true,
environment: 'jsdom',
setupFiles: "./src/__tests__/setup.ts"
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
}
});