mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 20:07:06 +08:00
21 lines
446 B
TypeScript
21 lines
446 B
TypeScript
import { join } from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import pkg from '../package.json'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
mode: process.env.NODE_ENV,
|
|
root: join(__dirname, '../src/renderer'),
|
|
plugins: [vue()],
|
|
base: './',
|
|
build: {
|
|
emptyOutDir: true,
|
|
outDir: '../../dist/renderer',
|
|
},
|
|
server: {
|
|
host: pkg.env.HOST,
|
|
port: pkg.env.PORT,
|
|
},
|
|
})
|