website/app/vite.config.js

16 lines
391 B
JavaScript
Raw Normal View History

2025-01-04 19:59:44 +03:00
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
2025-01-07 00:13:11 +03:00
import { fileURLToPath } from "url";
import { readFileSync } from "fs";
const file = fileURLToPath(new URL("package.json", import.meta.url));
const json = readFileSync(file, "utf8");
const pkg = JSON.parse(json);
2023-08-20 00:57:35 +03:00
export default defineConfig({
2025-01-04 19:59:44 +03:00
plugins: [sveltekit()],
2025-01-07 00:13:11 +03:00
define: {
pkg: pkg,
},
2023-08-20 00:57:35 +03:00
});