-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#35] path aliases 설정 #36
Conversation
Visit the preview URL for this PR (updated for commit 0d4f087): https://percenthotel--pr36-feature-35-path-ali-guydc4yy.web.app (expires Thu, 11 Jan 2024 04:51:57 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5f3aee9d8d8535dbb552ad12361bc813c5a90573 |
사용 방법은 import *** from "@pages/***" 처럼 쓰면 되는건가요? |
넵 맞습니다! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias를 써본적이 없는데, 폴더 구조가 크게 변하지 않는 이상 유용할 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 절대경로로 사용하는거 좋습니다. 수고하셨습니다!
그런데 나중에 vitest쓸 때 얘가 alias 알아먹게 해주는거 세팅해줘야하나봐요.
그것만 유의하면 괜찮을거 같습니다!
오옹 vitest 를 사용하려면 따로 alias 설정해줘야하군용 https://vitest.dev/guide/common-errors#cannot-find-module-relative-path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias써본적은 없는데 path가 더 직관적이여서 좋네요. 세팅감사합니다
Issue Number
close #35
⛳️ Task
✍️ Note
📸 Screenshot
📎 Reference