Skip to content

Commit

Permalink
[chore] 프론트엔드 절대경로 설정 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiSangwon authored Nov 15, 2023
1 parent 67d3e14 commit 0d87307
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,

"baseUrl": ".",
"paths": {
"@components/*": ["src/components/*"],
"@/*": ["src/*"]
}
},
"include": ["src"],
"include": ["src", "**/*.ts", "**/*.tsx"],
"references": [{ "path": "./tsconfig.node.json" }]
}
6 changes: 6 additions & 0 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: [
{ find: '@components', replacement: '/src/components' },
{ find: '@', replacement: '/src' },
],
},
})

0 comments on commit 0d87307

Please sign in to comment.