Skip to content

Conversation

@cozy-ito
Copy link
Collaborator

@cozy-ito cozy-ito commented Apr 24, 2025

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호

Closes #22

📝 PR 유형

해당하는 유형에 'x'로 체크해주세요.

  • 기능 추가 (Feature)
  • 버그 수정 (Bug Fix)
  • 코드 개선 (Refactoring)
  • 스타일 변경 (UI/UX)
  • 문서 작업 (Documentation)
  • 환경 설정 (Configuration)
  • 기타 (Other)

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

  • vite-plugin-svgr을 적용합니다.
  • 이미 수빈님께서 src/assets/icon/index.ts파일을 통해 아이콘을 모두 일괄적으로 export 해주셨으므로 아래와 같이 사용가능합니다.
import { Active } from "@/assets/icon";

export default function App() {
  return (
    <div>
      <Active />
    </div>
  );
}
  • 직접 svg 파일을 해당 경로에서 바로 import 해서 사용하려면 아래와 같이 사용 가능합니다.
import Active from "@/assets/icon/active.svg?react";

export default function App() {
  return (
    <div>
      <Active />
    </div>
  );
}

스크린샷 (선택)

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@cozy-ito cozy-ito added the Configuration (환경 설정) 환경 설정을 진행합니다. label Apr 24, 2025
@cozy-ito cozy-ito self-assigned this Apr 24, 2025
@netlify
Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for thejulge1 ready!

Name Link
🔨 Latest commit 1a0b4dd
🔍 Latest deploy log https://app.netlify.com/sites/thejulge1/deploys/6809a1423fa568000819b38b
😎 Deploy Preview https://deploy-preview-23--thejulge1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@almighty55555 almighty55555 left a comment

Choose a reason for hiding this comment

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

아주 간편해졌군요!! 수고하셨습니다

@cozy-ito cozy-ito merged commit 6d375c2 into dev Apr 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Configuration (환경 설정) 환경 설정을 진행합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vite-plugin-svgr 적용

4 participants