14 lines
336 B
TypeScript
14 lines
336 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf-8'))
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: './',
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(pkg.version)
|
|
}
|
|
})
|