21 lines
491 B
TypeScript
21 lines
491 B
TypeScript
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin()]
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()]
|
|
},
|
|
renderer: {
|
|
plugins: [svelte(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
$lib: path.resolve("./src/renderer/src/lib")
|
|
}
|
|
}
|
|
}
|
|
})
|