mirror of
https://github.com/Alvin-Zilverstand/Twitter-X-Media-Batch-Downloader.git
synced 2026-11-21 13:53:13 +01:00
23 lines
651 B
TypeScript
23 lines
651 B
TypeScript
import fs from "fs";
|
|
import path from "path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
const wailsJsonPath = path.resolve(__dirname, "../wails.json");
|
|
const wailsJson = JSON.parse(fs.readFileSync(wailsJsonPath, "utf-8"));
|
|
const appVersion = wailsJson.info.productVersion;
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
build: {
|
|
target: "safari15",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(appVersion),
|
|
},
|
|
});
|