mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 21:14:21 +08:00
29 lines
556 B
TypeScript
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'
|
|
}
|
|
})
|