You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
426 B
18 lines
426 B
import { defineConfig } from 'vite' |
|
import react from '@vitejs/plugin-react' |
|
import path from 'path' |
|
|
|
export default defineConfig({ |
|
root: path.resolve(__dirname, 'src/renderer'), |
|
build: { |
|
outDir: path.resolve(__dirname, 'dist/web'), |
|
emptyOutDir: true |
|
}, |
|
resolve: { |
|
alias: { |
|
'@renderer': path.resolve('src/renderer/src'), |
|
'@common': path.resolve('src/common') |
|
} |
|
}, |
|
plugins: [react()] |
|
})
|
|
|