added app version environment variable
This commit is contained in:
parent
67d349182e
commit
cf128088f6
@ -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),
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user