mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
21 lines
457 B
TypeScript
21 lines
457 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/index.ts'),
|
|
name: 'MateClawWebChat',
|
|
formats: ['es', 'umd'],
|
|
fileName: (format) => `mateclaw-webchat.${format}.js`,
|
|
},
|
|
rollupOptions: {
|
|
output: {
|
|
assetFileNames: 'mateclaw-webchat.[ext]',
|
|
},
|
|
},
|
|
cssCodeSplit: false,
|
|
minify: 'esbuild',
|
|
},
|
|
})
|