legacy/pairent_frontend_react/vite.config.js

13 lines
316 B
JavaScript

import react from '@vitejs/plugin-react'
import * as child from 'child_process';
/** @type {import('vite').UserConfig} */
export default {
plugins: [
react()
],
define: {
BUILD_TIME: new Date(),
// LAST_COMMIT: JSON.stringify(child.execSync("git rev-parse --short HEAD"))
}
}