-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvite.config.mts
More file actions
35 lines (34 loc) · 783 Bytes
/
Copy pathvite.config.mts
File metadata and controls
35 lines (34 loc) · 783 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
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: '/gitpop3/', // Matches homepage in package.json
define: {
'process.env': {},
},
server: {
port: 3000,
open: true,
},
build: {
outDir: 'build', // Keep CRA convention for GitHub Pages deploy
sourcemap: true,
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
css: true,
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'html'],
include: ['src/**/*.{js,jsx,ts,tsx}'],
exclude: [
'src/**/*.test.{ts,tsx}',
'src/setupTests.ts',
'src/react-app-env.d.ts',
],
},
},
})