mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 13:12:12 -03:00
- Add LoraListModal component with search and preview tooltip - Make 'Next LoRA' name clickable to open selector modal - Integrate PreviewTooltip with custom resolver for Vue widgets - Disable selector when prompts are queued (consistent with pause button) - Fix tooltip z-index to display above modal backdrop Fixes issue: users couldn't easily identify which index corresponds to specific LoRA in large lists
44 lines
1.2 KiB
TypeScript
44 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',
|
|
'../../../scripts/api.js',
|
|
'../loras_widget.js',
|
|
'../autocomplete.js',
|
|
'../preview_tooltip.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')
|
|
}
|
|
})
|