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.
24 lines
478 B
24 lines
478 B
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') |
|
} |
|
} |
|
} |
|
})
|
|
|