-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
20 lines (18 loc) · 792 Bytes
/
vite.config.ts
File metadata and controls
20 lines (18 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { defineConfig } from "vite";
import preact from "@preact/preset-vite";
import * as path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [preact()],
resolve: {
alias: [
{ find: "@", replacement: path.resolve(__dirname, "src") },
{ find: "@state", replacement: path.resolve(__dirname, "./src/state") },
{ find: "@router", replacement: path.resolve(__dirname, "./src/router") },
{ find: "@views", replacement: path.resolve(__dirname, "./src/views") },
{ find: "@utils", replacement: path.resolve(__dirname, "./src/utils") },
{ find: "@services", replacement: path.resolve(__dirname, "./src/services") },
{ find: "@constants", replacement: path.resolve(__dirname, "./src/constants") },
],
},
});