mirror of
https://codeberg.org/dragongoose/safetwitch.git
synced 2024-11-05 07:24:00 +00:00
25 lines
594 B
TypeScript
25 lines
594 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
|
|
import { dirname, resolve } from 'node:path'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
VueI18nPlugin({
|
|
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/locales/**'),
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
build: {
|
|
cssCodeSplit: true
|
|
},
|
|
envPrefix: 'SAFETWITCH_',
|
|
})
|