Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue : Closes #431
🧑🎤 Summary
🧑🎤 Screenshot
전
후 (번들 크기 개선 1, 2, 3이 통합된 결과예요)
build 속도를 6.11s 에서 4.99s로 1s 정도 개선할 수 있었습니다 :)
🧑🎤 Comment
😈 manual chunk를 통한 chunk 분리
경고창에 manual chunk를 이용하라고 추천해줘서 바로 적용해줬어요
모든 chunk를 로드할 필요 없이 필요한 chunk만 필요한 곳에서 사용하자는 개념이에요
firebase는 지원서 페이지의 파일 input에서만 사용되기에 다른 페이지에선 쓸 일이 없어요
그래서 firebase를 별도의 chunk로 분리해줬답니다
😈 lazy loading 적용
manual chunk와 비슷한 개념인데요 잘 아실거라고 생각들어요
dialog와 error page, nomore page는 특정 상황에서만 필요하기에 첫 페이지 로딩 때는 필요가 없어요
그래서 lazy loading 적용 시켜줬어요
추가로 하나의 페이지에 접속했을 때 다른 페이지는 필요하지 않으므로
router에서 각 페이지에 대한 lazy loading도 적용시켜줬어요