Initialisation du projet : Electron + Vite + React + TypeScript, Vitest, CI Windows
Some checks are pending
CI / windows (push) Waiting to run
Some checks are pending
CI / windows (push) Waiting to run
This commit is contained in:
commit
afb305b3e8
15 changed files with 6166 additions and 0 deletions
15
electron.vite.config.ts
Normal file
15
electron.vite.config.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { resolve } from 'node:path'
|
||||
import { defineConfig } from 'electron-vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
const shared = { '@shared': resolve(__dirname, 'src/shared') }
|
||||
|
||||
export default defineConfig({
|
||||
main: { resolve: { alias: shared } },
|
||||
preload: { resolve: { alias: shared } },
|
||||
renderer: {
|
||||
root: 'src/renderer',
|
||||
resolve: { alias: { ...shared, '@': resolve(__dirname, 'src/renderer/src') } },
|
||||
plugins: [react()]
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue