~starkingdoms/starkingdoms

ref: 05f422993232b163a91bc1bc9ac1f640be2195a6 starkingdoms/starkingdoms-client/vite.config.ts -rw-r--r-- 372 bytes
05f42299 — ghostlyzsh sending players on connection and part positions 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
import {defineConfig} from "vite";
import * as child from "child_process";

const commitHash = child.execSync('git describe --no-match --always --abbrev=8 --dirty').toString().trim();

export default defineConfig({
    plugins: [],
    define: {
        APP_VERSION: JSON.stringify(process.env.npm_package_version),
        COMMIT_HASH: JSON.stringify(commitHash)
    }
})