-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
41 lines (39 loc) · 1001 Bytes
/
vite.config.ts
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
31
32
33
34
35
36
37
38
39
40
41
import { dirname, resolve } from 'node:path';
import { fileURLToPath, URL } from 'node:url';
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
import vue from '@vitejs/plugin-vue';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
envPrefix: 'TEKST_',
appType: 'spa',
server: {
host: '127.0.0.1',
},
plugins: [
vue(),
VueI18nPlugin({
include: resolve(dirname(fileURLToPath(import.meta.url)), './translations/ui/**'),
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
define: {
__VUE_PROD_DEVTOOLS__: false,
__VUE_I18N_FULL_INSTALL__: false,
__VUE_I18N_LEGACY_API__: false,
__INTLIFY_PROD_DEVTOOLS__: false,
},
build: {
rollupOptions: {
output: {
assetFileNames: 'assets/[ext]/[ext]-[hash][extname]',
chunkFileNames: 'assets/js/chunk-[hash].js',
},
},
chunkSizeWarningLimit: 1200,
},
});