-
Notifications
You must be signed in to change notification settings - Fork 149
/
Copy pathvite.config.js
40 lines (39 loc) · 856 Bytes
/
vite.config.js
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
import { defineConfig } from "vite";
import vue from '@vitejs/plugin-vue'
import vuetify from 'vite-plugin-vuetify'
import path from "path";
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
import packageJson from './package.json'
// https://vitejs.dev/config/
export default defineConfig({
base: '',
server: {
proxy: {
'/api': 'http://localhost:8080',
'/api-docs': 'http://localhost:8080',
}
},
plugins: [
vue(),
vuetify(),
VueI18nPlugin({
include: [path.resolve(__dirname, './src/locales/**')],
compositionOnly: false
}),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
css: {
preprocessorOptions: {
scss: {
quietDeps: true
},
}
},
define: {
__PACKAGE_VERSION__: JSON.stringify(packageJson.version)
},
});