-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
26 lines (25 loc) · 762 Bytes
/
Copy pathvite.config.ts
File metadata and controls
26 lines (25 loc) · 762 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
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// GitHub Pages: https://coffin299.github.io/WebFileTools/
export default defineConfig({
base: '/WebFileTools/',
plugins: [react(), tailwindcss()],
server: {
watch: {
// close リスナー過多(MaxListenersExceededWarning)の軽減:不要ディレクトリを監視しない
ignored: [
'**/dist/**',
'**/.git/**',
'**/node_modules/**',
'**/.cursor/**',
'**/docs/**',
'**/*.md',
],
},
},
// 巨大依存は必要なときだけ読む(開発時の再監視・再起動の頻度を下げる)
optimizeDeps: {
exclude: ['js-tiktoken'],
},
})