2024-04-18 21:25:14 +03:00
|
|
|
import { vitePluginVersionMark } from "vite-plugin-version-mark";
|
2024-04-18 18:48:53 +03:00
|
|
|
|
2024-04-22 16:36:13 +03:00
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
2024-04-18 18:48:53 +03:00
|
|
|
export default defineConfig({
|
2024-06-04 10:21:17 +03:00
|
|
|
base: "./",
|
2024-11-07 01:24:33 +03:00
|
|
|
build: {
|
|
|
|
target: "esnext",
|
|
|
|
},
|
2024-04-18 21:25:14 +03:00
|
|
|
plugins: [
|
|
|
|
react(),
|
|
|
|
vitePluginVersionMark({
|
2024-10-30 18:58:33 +03:00
|
|
|
name: "Synapse Admin",
|
2024-10-31 18:18:28 +03:00
|
|
|
command: 'git describe --tags || git rev-parse --short HEAD || echo "${SYNAPSE_ADMIN_VERSION:-unknown}"',
|
2024-10-30 18:58:33 +03:00
|
|
|
ifMeta: false,
|
|
|
|
ifLog: false,
|
2024-04-18 21:25:14 +03:00
|
|
|
ifGlobal: true,
|
2024-10-30 18:58:33 +03:00
|
|
|
outputFile: (version) => ({
|
|
|
|
path: "manifest.json",
|
|
|
|
content: JSON.stringify({
|
|
|
|
name: "Synapse Admin",
|
|
|
|
version: version,
|
|
|
|
description: "Synapse Admin is an admin console for synapse Matrix homeserver with additional features.",
|
|
|
|
categories: ["productivity", "utilities"],
|
|
|
|
orientation: "landscape",
|
|
|
|
icons: [{
|
|
|
|
src: "favicon.ico",
|
|
|
|
sizes: "32x32",
|
|
|
|
type: "image/x-icon"
|
|
|
|
},{
|
|
|
|
src: "images/logo.webp",
|
|
|
|
sizes: "512x512",
|
|
|
|
type: "image/webp",
|
|
|
|
purpose: "any maskable"
|
|
|
|
}],
|
|
|
|
start_url: ".",
|
|
|
|
display: "standalone",
|
|
|
|
theme_color: "#000000",
|
|
|
|
background_color: "#ffffff"
|
|
|
|
}),
|
|
|
|
}),
|
2024-04-18 21:25:14 +03:00
|
|
|
}),
|
|
|
|
],
|
2024-04-18 18:48:53 +03:00
|
|
|
});
|