-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.mts
47 lines (41 loc) · 934 Bytes
/
vite.config.mts
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
42
43
44
45
46
47
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';
import i18nextLoader from 'vite-plugin-i18next-loader';
import vueDevTools from 'vite-plugin-vue-devtools';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
i18nextLoader({
paths: ['./locales'],
namespaceResolution: 'basename',
}),
vueDevTools(),
],
base: './',
resolve: {
alias: {
vue: "vue/dist/vue.esm-bundler.js",
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
'~kresmer': path.resolve(__dirname, 'node_modules/kresmer'),
}
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler"
}
}
},
build: {
rollupOptions: {
input: {
app: "./index.electron.html"
},
},
},
server: {
watch: {awaitWriteFinish: {stabilityThreshold: 1000}}
},
})