mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
- Change `STRING` input type to `AUTOCOMPLETE_TEXT_LORAS` in LoraManagerLoader, LoraStacker, and WanVideoLoraSelectLM nodes for LoRA syntax input - Change `STRING` input type to `AUTOCOMPLETE_TEXT_EMBEDDINGS` in PromptLoraManager node for prompt input - Remove manual multiline, autocomplete, and dynamicPrompts configurations in favor of built-in autocomplete types - Update placeholder text for consistency across nodes - Remove unused `setupInputWidgetWithAutocomplete` mock from frontend tests - Add Vue app cleanup logic to prevent memory leaks in widget management
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
cssInjectedByJsPlugin() // Inject CSS into JS for ComfyUI compatibility
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src')
|
|
}
|
|
},
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, './src/main.ts'),
|
|
formats: ['es'],
|
|
fileName: 'lora-manager-widgets'
|
|
},
|
|
rollupOptions: {
|
|
external: [
|
|
'../../../scripts/app.js',
|
|
'../loras_widget.js',
|
|
'../autocomplete.js'
|
|
],
|
|
output: {
|
|
dir: '../web/comfyui/vue-widgets',
|
|
entryFileNames: 'lora-manager-widgets.js',
|
|
chunkFileNames: 'assets/[name]-[hash].js',
|
|
assetFileNames: 'assets/[name]-[hash][extname]'
|
|
}
|
|
},
|
|
sourcemap: true,
|
|
minify: false
|
|
},
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production')
|
|
}
|
|
})
|