mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-12-18 10:25:54 +01:00
32 lines
727 B
JavaScript
32 lines
727 B
JavaScript
import { resolve } from 'node:path'
|
|
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import useEslint from 'vite-plugin-eslint'
|
|
import useUnoCSS from 'unocss/vite'
|
|
import postcssConfig from '@viarotel-org/postcss-config'
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
},
|
|
preload: {
|
|
resolve: {
|
|
alias: {
|
|
'@resources': resolve('resources'),
|
|
},
|
|
},
|
|
plugins: [externalizeDepsPlugin()],
|
|
},
|
|
renderer: {
|
|
resolve: {
|
|
alias: {
|
|
'@renderer': resolve('src/renderer/src'),
|
|
},
|
|
},
|
|
plugins: [useEslint(), vue(), useUnoCSS()],
|
|
css: {
|
|
postcss: postcssConfig(),
|
|
},
|
|
},
|
|
})
|