forked from aclc-iriga/bowa-bowaan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
40 lines (36 loc) · 1.06 KB
/
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 { fileURLToPath, URL } from 'node:url'
import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import vuetify from 'vite-plugin-vuetify'
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
// https://vitejs.dev/config/
export default ({mode}) => {
const config = {
plugins: [
vue(),
vuetify({
autoImport: true
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
base: undefined,
publicDir: 'assets',
server: {
host: 'localhost',
port: 5191,
strictPort: true
},
build: {
outDir: 'public'
}
};
process.env = {...process.env, ...loadEnv(mode, process.cwd())};
const SKIP_BASE_PATH = process.env.VITE_SKIP_BASE_PATH;
if (SKIP_BASE_PATH === undefined || SKIP_BASE_PATH === 'false')
config.base = '/bato-min-dlc/';
return defineConfig(config);
};