line-and-surface/vite.config.ts

15 lines
369 B
TypeScript
Raw Normal View History

2022-07-26 19:31:45 +02:00
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
2022-07-26 19:43:55 +02:00
import cp from "child_process";
const commitHash = cp.execSync("git rev-parse --short HEAD").toString();
2022-07-26 00:22:16 +02:00
// https://vitejs.dev/config/
export default defineConfig({
2022-07-26 19:31:45 +02:00
plugins: [svelte()],
2022-12-11 10:01:37 +01:00
base: "/las/",
2022-07-26 19:43:55 +02:00
define: {
__COMMIT_HASH__: JSON.stringify(commitHash),
},
2022-07-26 19:31:45 +02:00
});