mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
- Add LoraManagerDemoNode to node mappings for Vue widget demonstration - Update .gitignore to exclude Vue widget development artifacts (node_modules, .vite, dist) - Implement automatic Vue widget build check in development mode with fallback handling - Maintain pytest compatibility with proper import error handling
36 lines
926 B
TypeScript
36 lines
926 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src')
|
|
}
|
|
},
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, './src/main.ts'),
|
|
formats: ['es'],
|
|
fileName: 'demo-widget'
|
|
},
|
|
rollupOptions: {
|
|
external: [
|
|
'../../../scripts/app.js'
|
|
],
|
|
output: {
|
|
dir: '../web/comfyui/vue-widgets',
|
|
entryFileNames: 'demo-widget.js',
|
|
chunkFileNames: 'assets/[name]-[hash].js',
|
|
assetFileNames: 'assets/[name]-[hash][extname]'
|
|
}
|
|
},
|
|
sourcemap: true,
|
|
minify: false
|
|
},
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production')
|
|
}
|
|
})
|