Files
corescope-rx/vite.config.js
T
efiten baeed272fc chore: add app version display (semver via Vite inject), set 0.5.0
Shows the running build next to the title. Versioning scheme: patch=fix/tweak,
minor=new backward-compatible feature, major=breaking (e.g. MQTT contract) or
first stable release.
2026-06-10 11:53:44 +02:00

12 lines
347 B
JavaScript

import { defineConfig } from 'vite';
import { readFileSync } from 'fs';
// Inject the package.json version so the app can display which build is running.
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8'));
export default defineConfig({
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
});