Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[FE] front디렉토리 path-alias 설정 #121

Merged
merged 5 commits into from
Dec 13, 2022
Merged

Conversation

yeynii
Copy link
Member

@yeynii yeynii commented Dec 12, 2022

개요

react-app-rewired, customize-cra 라이브러리를 사용하여 path-alias 설정을 했습니다.

작업사항

  • src/경로를 @/로 접근할 수 있습니다.
  • default export된 모듈들로 이루어진 디렉터리는 index.ts를 정의하여 구조분해할당 방식으로 import 할 수 있도록 설정했습니다.

리뷰 요청사항

  • N/A

Copy link
Member

@leesungbin leesungbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-app-rewired 쓰는 것에 대한 고민이 많으셨을 것 같네요.
언젠가 path alias 기능이 별도의 설정 없이도 되면 좋겠네요.

Copy link
Collaborator

@Palwol Palwol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

드디어 path alias가 적용되는군요.. 최고입니다.👏

@leesungbin
Copy link
Member

conflict가 강하게 났군요...

@yeynii yeynii merged commit 3a1eee2 into dev Dec 13, 2022
@yeynii yeynii deleted the feature/front-path-alias branch December 13, 2022 02:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants