-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.js
More file actions
43 lines (42 loc) · 890 Bytes
/
vite.config.js
File metadata and controls
43 lines (42 loc) · 890 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
37
38
39
40
41
42
43
/*
* @Date: 2023-03-08 10:28:51
* @LastEditors: lisushuang
* @LastEditTime: 2023-11-09 09:57:43
* @FilePath: /bimcc-graph/vite.config.js
*/
import { defineConfig } from 'vite'
import { resolve } from 'path'
import babel from 'vite-plugin-babel';
export default defineConfig((commad, mode) => {
return {
root: "test",
publicDir: 'public',
server: {
// host: '127.0.0.1',
// port: 5000,
// open: true,
},
define: {
},
build: {
target: 'es2015',
outDir: '../build/umd/',
lib: {
entry: resolve(__dirname, 'src/index.ts'),
name: 'BimccGraph',
fileName: "BimccGraph",
formats: ['umd'],
},
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
}
},
plugins: [
babel(),
]
}
})