From cf128088f62a4c7673838fcc97760daab1357872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Baumg=C3=A4rtner?= Date: Thu, 18 Jan 2024 15:35:12 +0100 Subject: [PATCH] added app version environment variable --- vite.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 6926b6b..0deefae 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,5 +4,8 @@ import { defineConfig } from 'vite'; import { SvelteKitPWA } from '@vite-pwa/sveltekit'; export default defineConfig({ - plugins: [sveltekit(), purgeCss(), SvelteKitPWA()] + plugins: [sveltekit(), purgeCss(), SvelteKitPWA()], + define: { + __APP_VERSION__: JSON.stringify(process.env.npm_package_version), + }, });