import { resolve } from 'path' import { defineConfig } from 'vite' import pkg from './package.json' with { type: 'json' } declare global { const APP_NAME: string const APP_VERSION: string } export default defineConfig({ publicDir: 'resources', resolve: { alias: { '@': resolve(__dirname, 'src'), }, }, define: { APP_NAME: JSON.stringify(pkg.productName), APP_VERSION: JSON.stringify(`v${ pkg.version }`), }, build: { license: true, copyPublicDir: true, }, plugins: [ ], })