-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
53 lines (52 loc) · 1.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
import react from '@vitejs/plugin-react'
import tailwindcss from 'tailwindcss'
import {defineConfig} from 'vite'
// https://vitejs.dev/config/
export default defineConfig(() => {
return {
plugins: [react(), tailwindcss()],
base: '/static/',
server: {
host: '0.0.0.0',
port: 3000,
strictPort: true,
},
build: {
outDir: './static/dist/',
copyPublicDir: false,
manifest: true,
sourcemap: true,
rollupOptions: {
input: {
main: './frontend/index.tsx',
login: './frontend/apps/login/index.tsx',
recipe: './frontend/apps/recipe/index.tsx'
},
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './frontend/tests/setup.ts',
include: [
'**/__tests__/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'**/__snapshots__/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
'**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',
],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{rollup,vite,vitest,tailwind,postcss}.config.*',
],
coverage: {
reporter: ['text', 'json', 'html'],
},
},
css: {
postcss: {
plugins: [tailwindcss],
},
},
}
})