v1.0.0: Add version display in footer

This commit is contained in:
Alexej Wolff
2026-05-04 18:56:56 +02:00
parent f73a218745
commit efd2332875
8 changed files with 39 additions and 9 deletions
+6
View File
@@ -1,7 +1,13 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { readFileSync } from 'fs'
const pkg = JSON.parse(readFileSync('./package.json', 'utf-8'))
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
define: {
__APP_VERSION__: JSON.stringify(pkg.version),
},
})