electron-vite-vue/vite.config.ts

16 lines
348 B
TypeScript
Raw Normal View History

2020-08-16 20:42:52 +08:00
/**
* 参考链接: 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