- beautifului.dev 组件直连:Sidebar Nav、Tool Chips、Approval Card(抽屉化)、Streaming/Thinking、Code Block、Selection Actions、Prompt Bar、Search
22 lines
608 B
TypeScript
22 lines
608 B
TypeScript
// 预览页构建配置(独立于 electron-vite;仅用于视觉验收 beautifului 组件)
|
|
import { resolve } from 'node:path'
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
root: 'preview',
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src/renderer/src'),
|
|
'@renderer': resolve(__dirname, 'src/renderer/src'),
|
|
'@shared': resolve(__dirname, 'src/shared')
|
|
}
|
|
},
|
|
build: {
|
|
outDir: '../out/preview',
|
|
emptyOutDir: true
|
|
}
|
|
})
|