File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "files" : [],
3- "references" : [
4- { "path" : " ./tsconfig.app.json" },
5- { "path" : " ./tsconfig.node.json" }
6- ]
3+ "references" : [{ "path" : " ./tsconfig.app.json" }, { "path" : " ./tsconfig.node.json" }],
4+ "compilerOptions" : {
5+ "paths" : {
6+ "@/*" : [" ./src/*" ]
7+ }
8+ }
79}
Original file line number Diff line number Diff line change 11// vite.config.ts
22import { defineConfig } from "vite"
33import react from "@vitejs/plugin-react"
4+ import path from "path"
45
56export default defineConfig ( {
67 plugins : [ react ( ) ] ,
7- base : "/RandomInterview/" , // 确保与你的仓库名完全一致
8+ base : "/RandomInterview/" ,
9+ resolve : {
10+ alias : {
11+ "@" : path . resolve ( __dirname , "./src" )
12+ }
13+ } ,
814 build : {
915 outDir : "dist" ,
1016 emptyOutDir : true
You can’t perform that action at this time.
0 commit comments