mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
|
/**
|
||
|
* 参考链接: https://github.com/vitejs/vite/blob/master/src/node/config.ts
|
||
|
*/
|
||
|
import { join } from 'path'
|
||
|
import { UserConfig } from 'vite'
|
||
|
import dotenv from 'dotenv'
|
||
|
|
||
|
dotenv.config({ path: join(__dirname, '.env') })
|
||
|
|
||
|
const config: UserConfig = {
|
||
|
root: join(__dirname, 'src/render'),
|
||
|
port: +process.env.PORT,
|
||
|
}
|
||
|
|
||
|
export default config
|