-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (29 loc) 路 770 Bytes
/
Copy pathvite.config.ts
File metadata and controls
30 lines (29 loc) 路 770 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
import { defineConfig } from "vite";
import { resolve } from "path";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
target: "esnext",
rollupOptions: {
input: {
main: resolve(import.meta.dirname, "index.html"),
settings: resolve(import.meta.dirname, "settings.html"),
},
},
},
resolve: {
alias: [
{
find: "@components",
replacement: resolve(import.meta.dirname, "src", "components"),
},
{ find: "@utils", replacement: resolve(import.meta.dirname, "src", "utils") },
{ find: "@state", replacement: resolve(import.meta.dirname, "src", "state") },
],
},
server: {
port: 3000,
},
});