File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed
Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 1+ import path from 'path' ;
12import { defineConfig } from 'vite' ;
23import react from '@vitejs/plugin-react' ;
34import tailwindcss from '@tailwindcss/vite' ;
45
56// https://vite.dev/config/
67export default defineConfig ( {
8+ base : '/PlateFrom/' ,
79 plugins : [ react ( ) , tailwindcss ( ) ] ,
10+ resolve : {
11+ alias : {
12+ '@' : path . resolve ( __dirname , './src' ) ,
13+ } ,
14+ } ,
815} ) ;
You can’t perform that action at this time.
0 commit comments