mirror of
https://github.com/YuzuZensai/VRC-Circle.git
synced 2026-07-15 14:27:48 +00:00
26 lines
739 B
TypeScript
26 lines
739 B
TypeScript
import { resolve } from "node:path";
|
|
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
build: { rollupOptions: { input: resolve("src/main/index.ts") } },
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
build: { rollupOptions: { input: resolve("src/preload/index.ts") } },
|
|
},
|
|
renderer: {
|
|
root: "src/renderer",
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: { "@renderer": resolve("src/renderer/src") },
|
|
},
|
|
build: {
|
|
rollupOptions: { input: resolve("src/renderer/index.html") },
|
|
},
|
|
},
|
|
});
|