phase 1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { sveltekit } from "@sveltejs/kit/vite";
|
||||
import { defineConfig } from "vite";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const pkg = JSON.parse(
|
||||
readFileSync(
|
||||
fileURLToPath(new URL("./package.json", import.meta.url)),
|
||||
"utf8",
|
||||
),
|
||||
) as { version: string };
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(pkg.version),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user