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.
31 lines
735 B
31 lines
735 B
import { defineConfig } from 'vite';
|
|
import vue from '@vitejs/plugin-vue';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: './',
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'dist-electron/www',
|
|
emptyOutDir: false,
|
|
assetsDir: 'assets',
|
|
cssCodeSplit: false,
|
|
rollupOptions: {
|
|
input: path.resolve(__dirname, 'src/main.electron.ts'),
|
|
output: {
|
|
entryFileNames: 'main.electron.js',
|
|
assetFileNames: 'assets/[name]-[hash][extname]',
|
|
chunkFileNames: 'assets/[name]-[hash].js',
|
|
manualChunks: undefined
|
|
}
|
|
},
|
|
commonjsOptions: {
|
|
transformMixedEsModules: true
|
|
}
|
|
}
|
|
});
|