{"action":"created","comment":{"url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments/177623912","pull_request_review_id":107527431,"id":177623912,"diff_hunk":"@@ -0,0 +1,230 @@\n+---\n+title: SplitChunksPlugin\n+contributors:\n+  - sokra\n+  - jeremenichelli\n+related:\n+  - title: \"webpack 4: Code Splitting, chunk graph and the splitChunks optimization\"\n+    url: https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366\n+---\n+\n+Originally in webpack, chunks (and modules imported inside them) were connected by a parent-child relationship in the internal webpack graph.\n+\n+This connection didn't allow to further optimizations and resulted into more downloaded code.\n+\n+webpack v4 removes the `CommonsChunkPlugin` in favor of `optimization.splitChunks` and `optimize.runtimeChunk` options. Here is how the new flow works.\n+","path":"src/content/plugins/split-chunks-plugin.md","position":16,"original_position":16,"commit_id":"80509e452b9e0779de01f6e22f95328ac4233918","original_commit_id":"80509e452b9e0779de01f6e22f95328ac4233918","user":{"login":"skipjack","id":8988697,"avatar_url":"https://avatars3.githubusercontent.com/u/8988697?v=4","gravatar_id":"","url":"https://api.github.com/users/skipjack","html_url":"https://github.com/skipjack","followers_url":"https://api.github.com/users/skipjack/followers","following_url":"https://api.github.com/users/skipjack/following{/other_user}","gists_url":"https://api.github.com/users/skipjack/gists{/gist_id}","starred_url":"https://api.github.com/users/skipjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skipjack/subscriptions","organizations_url":"https://api.github.com/users/skipjack/orgs","repos_url":"https://api.github.com/users/skipjack/repos","events_url":"https://api.github.com/users/skipjack/events{/privacy}","received_events_url":"https://api.github.com/users/skipjack/received_events","type":"User","site_admin":false},"body":"We typically use two line breaks between `h2` sections. We should really automate this via `remark` and/or `prettier` along with various other markdown guidelines.","created_at":"2018-03-28T02:24:44Z","updated_at":"2018-03-28T02:44:56Z","html_url":"https://github.com/webpack/webpack.js.org/pull/1955#discussion_r177623912","pull_request_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments/177623912"},"html":{"href":"https://github.com/webpack/webpack.js.org/pull/1955#discussion_r177623912"},"pull_request":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955"}}},"pull_request":{"url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955","id":177320430,"html_url":"https://github.com/webpack/webpack.js.org/pull/1955","diff_url":"https://github.com/webpack/webpack.js.org/pull/1955.diff","patch_url":"https://github.com/webpack/webpack.js.org/pull/1955.patch","issue_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/1955","number":1955,"state":"open","locked":false,"title":"feat: add documentation for SplitChunksPlugin and deprecation warning…","user":{"login":"jeremenichelli","id":3856481,"avatar_url":"https://avatars0.githubusercontent.com/u/3856481?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremenichelli","html_url":"https://github.com/jeremenichelli","followers_url":"https://api.github.com/users/jeremenichelli/followers","following_url":"https://api.github.com/users/jeremenichelli/following{/other_user}","gists_url":"https://api.github.com/users/jeremenichelli/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremenichelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremenichelli/subscriptions","organizations_url":"https://api.github.com/users/jeremenichelli/orgs","repos_url":"https://api.github.com/users/jeremenichelli/repos","events_url":"https://api.github.com/users/jeremenichelli/events{/privacy}","received_events_url":"https://api.github.com/users/jeremenichelli/received_events","type":"User","site_admin":false},"body":"Sorry for the noise, the content for this branch was already approved here: https://github.com/webpack/webpack.js.org/pull/1863 but because of some issues on rebasing I needed to create a new PR to make sure I'm not making regression on content after the `next` branch merge.\r\n\r\nSolves https://github.com/webpack/webpack.js.org/issues/1812","created_at":"2018-03-26T00:19:29Z","updated_at":"2018-03-28T02:44:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0af8ca619e2a01427a3d32181a0e82a11a1ecfc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sokra","id":1365881,"avatar_url":"https://avatars0.githubusercontent.com/u/1365881?v=4","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},{"login":"TheLarkInn","id":3408176,"avatar_url":"https://avatars1.githubusercontent.com/u/3408176?v=4","gravatar_id":"","url":"https://api.github.com/users/TheLarkInn","html_url":"https://github.com/TheLarkInn","followers_url":"https://api.github.com/users/TheLarkInn/followers","following_url":"https://api.github.com/users/TheLarkInn/following{/other_user}","gists_url":"https://api.github.com/users/TheLarkInn/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLarkInn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLarkInn/subscriptions","organizations_url":"https://api.github.com/users/TheLarkInn/orgs","repos_url":"https://api.github.com/users/TheLarkInn/repos","events_url":"https://api.github.com/users/TheLarkInn/events{/privacy}","received_events_url":"https://api.github.com/users/TheLarkInn/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":630470911,"url":"https://api.github.com/repos/webpack/webpack.js.org/labels/New%20Release","name":"New Release","color":"bfd4f2","default":false},{"id":529086691,"url":"https://api.github.com/repos/webpack/webpack.js.org/labels/Plugins","name":"Plugins","color":"f9d0c4","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955/commits","review_comments_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955/comments","review_comment_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/1955/comments","statuses_url":"https://api.github.com/repos/webpack/webpack.js.org/statuses/80509e452b9e0779de01f6e22f95328ac4233918","head":{"label":"webpack:split-chunks-plugin-article","ref":"split-chunks-plugin-article","sha":"80509e452b9e0779de01f6e22f95328ac4233918","user":{"login":"webpack","id":2105791,"avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"repo":{"id":61886109,"name":"webpack.js.org","full_name":"webpack/webpack.js.org","owner":{"login":"webpack","id":2105791,"avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpack/webpack.js.org","description":"New repository for webpack documentation and more!","fork":false,"url":"https://api.github.com/repos/webpack/webpack.js.org","forks_url":"https://api.github.com/repos/webpack/webpack.js.org/forks","keys_url":"https://api.github.com/repos/webpack/webpack.js.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpack/webpack.js.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpack/webpack.js.org/teams","hooks_url":"https://api.github.com/repos/webpack/webpack.js.org/hooks","issue_events_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/events{/number}","events_url":"https://api.github.com/repos/webpack/webpack.js.org/events","assignees_url":"https://api.github.com/repos/webpack/webpack.js.org/assignees{/user}","branches_url":"https://api.github.com/repos/webpack/webpack.js.org/branches{/branch}","tags_url":"https://api.github.com/repos/webpack/webpack.js.org/tags","blobs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpack/webpack.js.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpack/webpack.js.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpack/webpack.js.org/statuses/{sha}","languages_url":"https://api.github.com/repos/webpack/webpack.js.org/languages","stargazers_url":"https://api.github.com/repos/webpack/webpack.js.org/stargazers","contributors_url":"https://api.github.com/repos/webpack/webpack.js.org/contributors","subscribers_url":"https://api.github.com/repos/webpack/webpack.js.org/subscribers","subscription_url":"https://api.github.com/repos/webpack/webpack.js.org/subscription","commits_url":"https://api.github.com/repos/webpack/webpack.js.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpack/webpack.js.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpack/webpack.js.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpack/webpack.js.org/contents/{+path}","compare_url":"https://api.github.com/repos/webpack/webpack.js.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpack/webpack.js.org/merges","archive_url":"https://api.github.com/repos/webpack/webpack.js.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpack/webpack.js.org/downloads","issues_url":"https://api.github.com/repos/webpack/webpack.js.org/issues{/number}","pulls_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls{/number}","milestones_url":"https://api.github.com/repos/webpack/webpack.js.org/milestones{/number}","notifications_url":"https://api.github.com/repos/webpack/webpack.js.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpack/webpack.js.org/labels{/name}","releases_url":"https://api.github.com/repos/webpack/webpack.js.org/releases{/id}","deployments_url":"https://api.github.com/repos/webpack/webpack.js.org/deployments","created_at":"2016-06-24T13:22:52Z","updated_at":"2018-03-27T20:45:59Z","pushed_at":"2018-03-27T20:05:57Z","git_url":"git://github.com/webpack/webpack.js.org.git","ssh_url":"git@github.com:webpack/webpack.js.org.git","clone_url":"https://github.com/webpack/webpack.js.org.git","svn_url":"https://github.com/webpack/webpack.js.org","homepage":"https://webpack.js.org","size":162735,"stargazers_count":1011,"watchers_count":1011,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1525,"mirror_url":null,"archived":false,"open_issues_count":70,"license":{"key":"cc-by-4.0","name":"Creative Commons Attribution 4.0","spdx_id":"CC-BY-4.0","url":"https://api.github.com/licenses/cc-by-4.0"},"forks":1525,"open_issues":70,"watchers":1011,"default_branch":"master"}},"base":{"label":"webpack:master","ref":"master","sha":"93ed668c2e9467b1d1e372bc95087f7d068055d9","user":{"login":"webpack","id":2105791,"avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"repo":{"id":61886109,"name":"webpack.js.org","full_name":"webpack/webpack.js.org","owner":{"login":"webpack","id":2105791,"avatar_url":"https://avatars2.githubusercontent.com/u/2105791?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack","html_url":"https://github.com/webpack","followers_url":"https://api.github.com/users/webpack/followers","following_url":"https://api.github.com/users/webpack/following{/other_user}","gists_url":"https://api.github.com/users/webpack/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack/subscriptions","organizations_url":"https://api.github.com/users/webpack/orgs","repos_url":"https://api.github.com/users/webpack/repos","events_url":"https://api.github.com/users/webpack/events{/privacy}","received_events_url":"https://api.github.com/users/webpack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webpack/webpack.js.org","description":"New repository for webpack documentation and more!","fork":false,"url":"https://api.github.com/repos/webpack/webpack.js.org","forks_url":"https://api.github.com/repos/webpack/webpack.js.org/forks","keys_url":"https://api.github.com/repos/webpack/webpack.js.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webpack/webpack.js.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webpack/webpack.js.org/teams","hooks_url":"https://api.github.com/repos/webpack/webpack.js.org/hooks","issue_events_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/events{/number}","events_url":"https://api.github.com/repos/webpack/webpack.js.org/events","assignees_url":"https://api.github.com/repos/webpack/webpack.js.org/assignees{/user}","branches_url":"https://api.github.com/repos/webpack/webpack.js.org/branches{/branch}","tags_url":"https://api.github.com/repos/webpack/webpack.js.org/tags","blobs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webpack/webpack.js.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webpack/webpack.js.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/webpack/webpack.js.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webpack/webpack.js.org/statuses/{sha}","languages_url":"https://api.github.com/repos/webpack/webpack.js.org/languages","stargazers_url":"https://api.github.com/repos/webpack/webpack.js.org/stargazers","contributors_url":"https://api.github.com/repos/webpack/webpack.js.org/contributors","subscribers_url":"https://api.github.com/repos/webpack/webpack.js.org/subscribers","subscription_url":"https://api.github.com/repos/webpack/webpack.js.org/subscription","commits_url":"https://api.github.com/repos/webpack/webpack.js.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/webpack/webpack.js.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/webpack/webpack.js.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/webpack/webpack.js.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/webpack/webpack.js.org/contents/{+path}","compare_url":"https://api.github.com/repos/webpack/webpack.js.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webpack/webpack.js.org/merges","archive_url":"https://api.github.com/repos/webpack/webpack.js.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webpack/webpack.js.org/downloads","issues_url":"https://api.github.com/repos/webpack/webpack.js.org/issues{/number}","pulls_url":"https://api.github.com/repos/webpack/webpack.js.org/pulls{/number}","milestones_url":"https://api.github.com/repos/webpack/webpack.js.org/milestones{/number}","notifications_url":"https://api.github.com/repos/webpack/webpack.js.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webpack/webpack.js.org/labels{/name}","releases_url":"https://api.github.com/repos/webpack/webpack.js.org/releases{/id}","deployments_url":"https://api.github.com/repos/webpack/webpack.js.org/deployments","created_at":"2016-06-24T13:22:52Z","updated_at":"2018-03-27T20:45:59Z","pushed_at":"2018-03-27T20:05:57Z","git_url":"git://github.com/webpack/webpack.js.org.git","ssh_url":"git@github.com:webpack/webpack.js.org.git","clone_url":"https://github.com/webpack/webpack.js.org.git","svn_url":"https://github.com/webpack/webpack.js.org","homepage":"https://webpack.js.org","size":162735,"stargazers_count":1011,"watchers_count":1011,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1525,"mirror_url":null,"archived":false,"open_issues_count":70,"license":{"key":"cc-by-4.0","name":"Creative Commons Attribution 4.0","spdx_id":"CC-BY-4.0","url":"https://api.github.com/licenses/cc-by-4.0"},"forks":1525,"open_issues":70,"watchers":1011,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955"},"html":{"href":"https://github.com/webpack/webpack.js.org/pull/1955"},"issue":{"href":"https://api.github.com/repos/webpack/webpack.js.org/issues/1955"},"comments":{"href":"https://api.github.com/repos/webpack/webpack.js.org/issues/1955/comments"},"review_comments":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955/comments"},"review_comment":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webpack/webpack.js.org/pulls/1955/commits"},"statuses":{"href":"https://api.github.com/repos/webpack/webpack.js.org/statuses/80509e452b9e0779de01f6e22f95328ac4233918"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"skipjack"}}