safetwitch/vite.config.ts

26 lines
594 B
TypeScript
Raw Normal View History

2023-03-07 06:19:05 +00:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2023-06-13 16:08:43 +00:00
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import { dirname, resolve } from 'node:path'
2023-03-07 06:19:05 +00:00
// https://vitejs.dev/config/
export default defineConfig({
2023-06-13 16:08:43 +00:00
plugins: [
vue(),
VueI18nPlugin({
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/locales/**'),
})
],
2023-03-07 06:19:05 +00:00
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
2023-03-19 23:52:28 +00:00
},
build: {
2023-06-13 20:01:06 +00:00
cssCodeSplit: true
2023-06-13 16:08:43 +00:00
},
envPrefix: 'SAFETWITCH_',
2023-03-07 06:19:05 +00:00
})