forked from pawitp/protobuf-decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
36 lines (35 loc) · 731 Bytes
/
vite.config.js
File metadata and controls
36 lines (35 loc) · 731 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
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vite'
export default defineConfig({
server: {
host: '0.0.0.0',
port: 3000,
open: true
},
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: {
vendor: ['react', 'react-dom'],
ui: ['semantic-ui-react', 'semantic-ui-css'],
utils: ['buffer', 'jsbi']
}
}
},
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
}
},
plugins: [react()],
test: {
environment: 'jsdom'
},
optimizeDeps: {
include: ['react', 'react-dom', 'semantic-ui-react', 'buffer', 'jsbi']
}
})