mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-17 13:40:44 +08:00
完善slow
This commit is contained in:
21
x_err_sdk/vite.config.js
Normal file
21
x_err_sdk/vite.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defineConfig, loadEnv } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
lib: {
|
||||
entry: 'web/index.ts', // 库的入口文件
|
||||
name: 'XErr', // 库的名称
|
||||
fileName: (format) => `web/XErr.${format}.js`, // 输出文件名
|
||||
},
|
||||
rollupOptions: {
|
||||
// 外部化处理不想打包进库的依赖
|
||||
// external: ['vue'],
|
||||
output: {
|
||||
globals: {
|
||||
// vue: 'Vue'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user