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.
25 lines
478 B
25 lines
478 B
6 days ago
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import { resolve } from 'path'
|
||
|
import { routeMappingPlugin } from './plugins/route-mapping-plugin.js'
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
routeMappingPlugin()
|
||
|
],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': resolve(__dirname, 'src/renderer')
|
||
|
}
|
||
|
},
|
||
|
build: {
|
||
|
outDir: 'dist',
|
||
|
rollupOptions: {
|
||
|
input: {
|
||
|
main: resolve(__dirname, 'index.html')
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
})
|