47 lines
1012 B
TypeScript
47 lines
1012 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
includeAssets: ['favicon.ico', 'icons/*.png'],
|
|
manifest: {
|
|
name: 'Agent UI - Dynamic Canvas',
|
|
short_name: 'AgentUI',
|
|
description: 'Dynamic canvas for Claude Code interaction',
|
|
theme_color: '#1a1a2e',
|
|
background_color: '#1a1a2e',
|
|
display: 'standalone',
|
|
icons: [
|
|
{
|
|
src: 'icons/icon-192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png'
|
|
},
|
|
{
|
|
src: 'icons/icon-512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png'
|
|
}
|
|
]
|
|
}
|
|
})
|
|
],
|
|
server: {
|
|
port: 4100,
|
|
host: true,
|
|
proxy: {
|
|
'/api': 'http://localhost:4101'
|
|
},
|
|
watch: {
|
|
usePolling: false
|
|
}
|
|
},
|
|
build: {
|
|
sourcemap: true
|
|
}
|
|
})
|