path:
/vite.config.mjs
516 B | plain
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
import process from 'node:process'
import { defineConfig, loadEnv } from 'vite'
import { VineVitePlugin } from 'vue-vine/vite'
import checker from 'vite-plugin-checker'
export default defineConfig((mode) => {
const
env = loadEnv(mode, process.cwd(), '')
return {
base: env.BASE_URL ?? '/',
build: {
outDir: 'dist',
assetsDir: '.',
target: 'esnext',
minify: true,
},
plugins: [
VineVitePlugin(),
checker({
vueTsc: true,
}),
],
}
});