mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-12-16 21:16:49 +00:00
34 lines
732 B
TypeScript
34 lines
732 B
TypeScript
import path from 'path'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueI18n from '@intlify/vite-plugin-vue-i18n'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
target: 'esnext',
|
|
assetsInlineLimit: 0
|
|
},
|
|
optimizeDeps: {
|
|
esbuildOptions: { target: 'esnext' }
|
|
},
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
isCustomElement: (tag) => tag === 'webview'
|
|
}
|
|
}
|
|
}),
|
|
vueI18n({
|
|
runtimeOnly: false // https://github.com/intlify/vue-i18n-next/issues/938
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@ipc': path.resolve(__dirname, './src/../../ipc')
|
|
}
|
|
}
|
|
})
|