mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
* Fix build output * 0.7.37 * Fix type export * 0.7.38 * Adjust build * 0.7.39 * Add css to package declaration * 0.7.40 * ESM style named export * 0.7.41 * Fix style export for unit test * 0.7.42
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
import { defineConfig } from 'vite'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: path.resolve(__dirname, 'src/litegraph.js'),
|
|
name: 'litegraph.js',
|
|
fileName: (format) => `litegraph.${format}.js`,
|
|
formats: ['es', 'umd']
|
|
},
|
|
minify: false,
|
|
sourcemap: true,
|
|
},
|
|
}) |