Add @multica/ui workspace dependency with @tailwindcss/vite plugin for CSS processing. Import globals.css for theme and replace template UI with shared Button component. Remove unused template CSS files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
564 B
TypeScript
24 lines
564 B
TypeScript
import { defineConfig } from 'vite'
|
|
import path from 'node:path'
|
|
import electron from 'vite-plugin-electron/simple'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
electron({
|
|
main: {
|
|
entry: 'electron/main.ts',
|
|
},
|
|
preload: {
|
|
input: path.join(__dirname, 'electron/preload.ts'),
|
|
},
|
|
renderer: process.env.NODE_ENV === 'test'
|
|
? undefined
|
|
: {},
|
|
}),
|
|
],
|
|
})
|