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), + }, });