-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathvite.config.ts
More file actions
31 lines (30 loc) · 783 Bytes
/
vite.config.ts
File metadata and controls
31 lines (30 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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
base: '/web-serial-debug/',
resolve: {
alias: {
'@': '/src',
}
},
build: {
chunkSizeWarningLimit: 1500,
rollupOptions: {
output: {
manualChunks: {
'vendor': [],
'vue': ['vue', 'vue-router', '@vueuse/core', 'pinia'],
'three': ['three', 'stats.js', 'three-particle-fire'],
'uplot': ['uplot'],
'xterm': ['xterm', 'xterm-addon-fit', 'xterm-addon-web-links', '@xterm/addon-search'],
'utils': ['splitpanes', 'element-plus']
}
}
}
},
define: {
__BUILD_TIME__: JSON.stringify(new Date().toISOString())
}
})