-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
35 lines (33 loc) · 857 Bytes
/
vite.config.ts
File metadata and controls
35 lines (33 loc) · 857 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
33
34
35
import path from "path";
import vue from "@vitejs/plugin-vue";
import vike from "vike/plugin";
import { UserConfig } from "vite";
// @ts-ignore
import postcss from "./postcss.config";
const config: UserConfig = {
css: {
postcss,
},
plugins: [vue(), vike()],
resolve: {
alias: {
"@server": path.join(__dirname, "server"),
"@renderer": path.join(__dirname, "renderer"),
"@components": path.join(__dirname, "components"),
"@pages": path.join(__dirname, "pages"),
include: path.resolve(__dirname, "locales/**"),
"@locales": path.join(__dirname, "locales"),
},
},
ssr: {
noExternal: ["vue-i18n"],
},
optimizeDeps: {
include: [
"@fontawesome/fontawesome-svg-core",
"@fortawesome/free-solid-svg-icons",
"@fortawesome/vue-fontawesome",
],
}
};
export default config;