-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (28 loc) · 770 Bytes
/
vite.config.ts
File metadata and controls
30 lines (28 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { resolve, dirname } from 'node:path'
import { fileURLToPath, URL } from 'node:url'
import path from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
// https://vitejs.dev/config/
export default defineConfig({
// base: 'https://cdn.jsdelivr.net/gh/Azuriom/AzuriomInstaller@1.2.0/build/',
build: {
// outDir: 'build',
},
plugins: [
vue(),
VueI18nPlugin({
include: resolve(
dirname(fileURLToPath(import.meta.url)),
'./src/locales/**',
),
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
},
},
})