21 lines
439 B
JavaScript
21 lines
439 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import { sharedConfig } from './vite.shared'
|
|
|
|
export default defineConfig({
|
|
...sharedConfig,
|
|
root: 'src/renderer',
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src/renderer/src', import.meta.url)),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
build: {
|
|
outDir: '../../dist/renderer',
|
|
},
|
|
})
|