mirror of
https://github.com/upscayl/upscayl.git
synced 2026-02-19 11:55:37 -05:00
- Deleted the electron.vite.config.mts file. - Updated various dependencies in package.json and package-lock.json, including: - Bumped versions for @tailwindcss packages, cmdk, lucide-react, react-markdown, react-resizable-panels, react-select, react-tooltip, tailwind-merge, and others. - Updated devDependencies for @types packages and @vitejs/plugin-react. - Adjusted PostCSS configuration to use @tailwindcss/postcss. - Made minor adjustments to Tailwind CSS configuration and global styles.
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
/**
|
|
* @type {import('electron-vite').UserConfig}
|
|
*/
|
|
|
|
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import { resolve } from "path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
build: {
|
|
outDir: resolve(__dirname, "export/electron"),
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, "electron/index.ts"),
|
|
},
|
|
},
|
|
},
|
|
plugins: [externalizeDepsPlugin()],
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
build: {
|
|
outDir: resolve(__dirname, "export/electron/preload"),
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, "electron/preload.ts"),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
renderer: {
|
|
root: ".",
|
|
base: "./",
|
|
build: {
|
|
outDir: resolve(__dirname, "renderer/out"),
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve("index.html"),
|
|
},
|
|
},
|
|
},
|
|
plugins: [react(), tsconfigPaths(), tailwindcss()],
|
|
publicDir: resolve(__dirname, "renderer/public"),
|
|
},
|
|
});
|