Files
SecScore/vite.mobile.config.ts
T
2026-03-01 13:43:52 +08:00

29 lines
556 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
root: 'src/mobile',
build: {
outDir: '../../out',
emptyOutDir: true,
sourcemap: false,
minify: 'terser',
rollupOptions: {
input: {
main: path.resolve(__dirname, 'src/mobile/index.html')
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src/renderer/src')
}
},
define: {
'process.env': {},
global: 'globalThis'
}
})