Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

1 code splitting #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

1 code splitting #1

wants to merge 8 commits into from

Conversation

SoYoung210
Copy link
Owner

Desc

master의 기본 프로젝트에서 Code Splitting을 적용했습니다.

@loadable/component 를 이용했습니다.

Result

스크린샷 2019-10-10 오후 2 12 14

스크린샷 2019-10-10 오후 2 13 56

하이라이팅 된 부분을 보면, script tag에 chunk된 js가 포함되어 있는 것을 볼 수 있습니다.
이는 html-webpack-plugin을 이용했으며, .html 파일 대신 .pug 를 사용하고 있기 때문에 html-webpack-pug-plugin을 추가했습니다.

@@ -14,6 +15,7 @@
"redux": "4.0.1",
"redux-actions": "2.6.5",
"redux-observable": "1.1.0",
"rxjs": "^6.5.3",
Copy link
Owner Author

Choose a reason for hiding this comment

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

master브랜치에 rxjs가 빠져있어서 추가했습니다. Code Splitting과는 무관한 작업입니다.

@SoYoung210 SoYoung210 mentioned this pull request Oct 14, 2019
@SoYoung210 SoYoung210 mentioned this pull request Nov 1, 2019
@SoYoung210 SoYoung210 force-pushed the 1-code-splitting branch 2 times, most recently from 56dd3ad to 0e888a4 Compare November 2, 2019 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant