mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
25 lines
481 B
TypeScript
25 lines
481 B
TypeScript
import { resolve } from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import dts from 'vite-plugin-dts'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, 'src/types/index.ts'),
|
|
name: 'comfyui-frontend-types',
|
|
formats: ['es'],
|
|
fileName: 'index'
|
|
},
|
|
copyPublicDir: false,
|
|
minify: false
|
|
},
|
|
|
|
plugins: [
|
|
dts({
|
|
copyDtsFiles: true,
|
|
rollupTypes: true,
|
|
tsconfigPath: 'tsconfig.types.json'
|
|
})
|
|
]
|
|
})
|