assistant/vite.config.ts

15 lines
376 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// 渲染层由 Electron 通过自定义协议 app://ui/ 提供(见 electron/main.ts),资源用相对路径
export default defineConfig({
root: 'renderer',
base: './',
plugins: [react()],
build: {
outDir: '../dist/renderer',
emptyOutDir: true,
sourcemap: true,
},
});