feat: unify contact button styles, dynamic version from git tag, enrich AI positions & homepage UX
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { execSync } from 'child_process';
|
||||
import uni from '@dcloudio/vite-plugin-uni';
|
||||
|
||||
let appVersion = '1.0.0';
|
||||
try {
|
||||
appVersion = execSync('git describe --tags --abbrev=0 2>/dev/null || echo "1.0.0"', { encoding: 'utf8' }).trim().replace(/^v/, '');
|
||||
} catch {}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [uni()],
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(appVersion),
|
||||
},
|
||||
server: {
|
||||
port: 8888,
|
||||
strictPort: true,
|
||||
|
||||
Reference in New Issue
Block a user