Skip to content

Commit

Permalink
feat(vite): define project version
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jul 8, 2024
1 parent ecda638 commit ad53d1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
import pkg from './package.json';

export default defineConfig({
plugins: [sveltekit()],
define: {
'import.meta.env.APP_VERSION': JSON.stringify(pkg.version)
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
Expand Down

0 comments on commit ad53d1d

Please # to comment.