Skip to content

Commit f0c2bda

Browse files
committed
chore: update config file frontend
1 parent 8ae1470 commit f0c2bda

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

plate-client/tsconfig.app.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020
"noUnusedLocals": true,
2121
"noUnusedParameters": true,
2222
"noFallthroughCasesInSwitch": true,
23-
"noUncheckedSideEffectImports": true
23+
"noUncheckedSideEffectImports": true,
24+
25+
/* Path aliases */
26+
"baseUrl": ".",
27+
"paths": {
28+
"@/*": ["./src/*"]
29+
}
2430
},
2531
"include": ["src"]
2632
}

plate-client/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33
"references": [
44
{ "path": "./tsconfig.app.json" },
55
{ "path": "./tsconfig.node.json" }
6-
]
6+
],
7+
"compilerOptions": {
8+
"baseUrl": ".",
9+
"paths": {
10+
"@/*": ["./src/*"]
11+
}
12+
}
713
}

plate-client/vite.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
import path from 'path';
12
import { defineConfig } from 'vite';
23
import react from '@vitejs/plugin-react';
34
import tailwindcss from '@tailwindcss/vite';
45

56
// https://vite.dev/config/
67
export default defineConfig({
8+
base: '/PlateFrom/',
79
plugins: [react(), tailwindcss()],
10+
resolve: {
11+
alias: {
12+
'@': path.resolve(__dirname, './src'),
13+
},
14+
},
815
});

0 commit comments

Comments
 (0)