-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
32 lines (30 loc) · 861 Bytes
/
vite.config.js
File metadata and controls
32 lines (30 loc) · 861 Bytes
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
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import { fileURLToPath } from "url"
import Icons from "unplugin-icons/vite"
import IconsResolver from "unplugin-icons/resolver"
import Components from "unplugin-vue-components/vite"
import config from "./src/config.js"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
Components({
resolvers: IconsResolver(),
}),
Icons({
autoInstall: true,
compiler: "vue3",
scale: 1.1,
defaultStyle: "height: 1.375em; vertical-align: bottom;",
}),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src/client", import.meta.url)),
"#": fileURLToPath(new URL(".", import.meta.url)),
},
},
// Use base / for everything other than production
base: config.isProduction ? config.base : "/",
})