mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-14 09:27:41 +00:00
- Vue 3 + TypeScript + Vite project scaffold - PrimeVue UI components integration - VueFlow for node-based canvas editor - Pinia stores for state management (comfy, ui, workspace) - Workspace layout with sidebar navigation - Canvas view with node editor components - Custom node components (FlowNode, NodeHeader, NodeSlots, NodeWidgets) - Widget components (slider, select, toggle, text, number, color) - Authentication view mockup - ComfyUI API service integration scaffold - Node definitions and type system - Tailwind CSS styling - Node_info documentation for ComfyUI nodes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
948 B
TypeScript
46 lines
948 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import Icons from 'unplugin-icons/vite'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import { PrimeVueResolver } from '@primevue/auto-import-resolver'
|
|
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
tailwindcss(),
|
|
Icons({
|
|
compiler: 'vue3',
|
|
autoInstall: true
|
|
}),
|
|
Components({
|
|
resolvers: [PrimeVueResolver()],
|
|
dts: 'src/components.d.ts'
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8188',
|
|
changeOrigin: true
|
|
},
|
|
'/ws': {
|
|
target: 'ws://127.0.0.1:8188',
|
|
ws: true
|
|
}
|
|
}
|
|
},
|
|
build: {
|
|
target: 'ES2022',
|
|
sourcemap: true
|
|
}
|
|
})
|