electron-vue-exam-single/vite.config.js
2025-08-16 21:18:01 +08:00

29 lines
642 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import electron from 'vite-plugin-electron';
// 不使用任何global对象操作仅使用基本配置
export default defineConfig({
base: './',
plugins: [
vue(),
electron({
entry: 'electron/main.js',
}),
],
resolve: {
alias: {
'@': '/Users/chenqiang/workspace/work/exam/electron/win7/src'
},
},
build: {
rollupOptions: {
output: {
assetFileNames: 'assets/[name].[hash].[ext]',
chunkFileNames: 'assets/[name].[hash].js',
entryFileNames: 'assets/[name].[hash].js'
}
}
}
});