Skip to content

Commit

Permalink
[FE] 리소스를 최적화 및 번들 크기 감소 (#365)
Browse files Browse the repository at this point in the history
* chore: webpack-bundle-analyzer 설정

* refactor: SVG 파일 크기 최적화

* chore: 동적 import와 React.lazy를 사용하여 페이지별 코드 스플리팅 적용

* chore: react-lottie 추가

* feat: PageMoveLoading 컴포넌트 구현

* chore: Pretendard subset 폰트로 교체

* chore: 폰트 preload 적용

* chore: splitChunks 적용 및 파일 이름에 컨텐츠 해시 포함

* refactor: React.FC 제거 및 ComponentType 사용
  • Loading branch information
Yoonkyoungme authored Sep 26, 2024
1 parent bde448c commit 1df794e
Show file tree
Hide file tree
Showing 30 changed files with 880 additions and 102 deletions.
337 changes: 335 additions & 2 deletions frontend/package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"msw": "2.3.1",
"postcss": "8.4.39",
"postcss-styled-syntax": "0.6.4",
"react-lottie": "^1.2.4",
"storybook": "8.2.4",
"stylelint": "16.6.1",
"stylelint-config-clean-order": "6.1.0",
Expand All @@ -89,8 +90,10 @@
"typescript": "5.5.3",
"undici": "6.19.2",
"webpack": "5.94.0",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"webpack-font-preload-plugin": "^1.5.0",
"webpack-merge": "6.0.1"
},
"msw": {
Expand Down
Binary file removed frontend/src/assets/fonts/Pretendard-Black.woff2
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Pretendard-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Pretendard-Light.woff2
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Pretendard-Medium.woff2
Binary file not shown.
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Pretendard-Regular.woff2
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Pretendard-SemiBold.woff2
Binary file not shown.
Binary file removed frontend/src/assets/fonts/Pretendard-Thin.woff2
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/src/assets/images/kakao.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions frontend/src/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 3 additions & 13 deletions frontend/src/assets/images/logoSunglass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions frontend/src/assets/images/momoCharacter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1df794e

Please sign in to comment.