{"action":"opened","number":25,"pull_request":{"url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/25","id":195734160,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NzM0MTYw","html_url":"https://github.com/van-nguyen/webpack-cdn-plugin/pull/25","diff_url":"https://github.com/van-nguyen/webpack-cdn-plugin/pull/25.diff","patch_url":"https://github.com/van-nguyen/webpack-cdn-plugin/pull/25.patch","issue_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues/25","number":25,"state":"open","locked":false,"title":"feat: optimize unused modules","user":{"login":"mistic100","id":41597,"node_id":"MDQ6VXNlcjQxNTk3","avatar_url":"https://avatars3.githubusercontent.com/u/41597?v=4","gravatar_id":"","url":"https://api.github.com/users/mistic100","html_url":"https://github.com/mistic100","followers_url":"https://api.github.com/users/mistic100/followers","following_url":"https://api.github.com/users/mistic100/following{/other_user}","gists_url":"https://api.github.com/users/mistic100/gists{/gist_id}","starred_url":"https://api.github.com/users/mistic100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistic100/subscriptions","organizations_url":"https://api.github.com/users/mistic100/orgs","repos_url":"https://api.github.com/users/mistic100/repos","events_url":"https://api.github.com/users/mistic100/events{/privacy}","received_events_url":"https://api.github.com/users/mistic100/received_events","type":"User","site_admin":false},"body":"This new \"optimize\" option will ignore any configured module if not actually used in the bundle.\r\n\r\nUse case : I have a modular multi NPM module architecture for my company, the \"build\" module contains the complete configuration for building the applications using optional modules like \"editor\", \"calendar\", etc.\r\nIf an application does not use the \"calendar\" plugin, the dependencies will still be loaded from the CDN because they are configured in the \"build\" module.\r\n\r\nSee this like a tree-shaking :-)\r\n\r\nPS: there will be merge conflicts with my other PR, I will rebase either one or the other when needed.","created_at":"2018-06-19T07:27:38Z","updated_at":"2018-06-19T07:27:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/25/commits","review_comments_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/25/comments","review_comment_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues/25/comments","statuses_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/statuses/8c6f342512577fa827dacd6454110aa3329fa336","head":{"label":"sogelink:ignore-unused","ref":"ignore-unused","sha":"8c6f342512577fa827dacd6454110aa3329fa336","user":{"login":"sogelink","id":22936821,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTM2ODIx","avatar_url":"https://avatars2.githubusercontent.com/u/22936821?v=4","gravatar_id":"","url":"https://api.github.com/users/sogelink","html_url":"https://github.com/sogelink","followers_url":"https://api.github.com/users/sogelink/followers","following_url":"https://api.github.com/users/sogelink/following{/other_user}","gists_url":"https://api.github.com/users/sogelink/gists{/gist_id}","starred_url":"https://api.github.com/users/sogelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sogelink/subscriptions","organizations_url":"https://api.github.com/users/sogelink/orgs","repos_url":"https://api.github.com/users/sogelink/repos","events_url":"https://api.github.com/users/sogelink/events{/privacy}","received_events_url":"https://api.github.com/users/sogelink/received_events","type":"Organization","site_admin":false},"repo":{"id":137483686,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc0ODM2ODY=","name":"webpack-cdn-plugin","full_name":"sogelink/webpack-cdn-plugin","owner":{"login":"sogelink","id":22936821,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyOTM2ODIx","avatar_url":"https://avatars2.githubusercontent.com/u/22936821?v=4","gravatar_id":"","url":"https://api.github.com/users/sogelink","html_url":"https://github.com/sogelink","followers_url":"https://api.github.com/users/sogelink/followers","following_url":"https://api.github.com/users/sogelink/following{/other_user}","gists_url":"https://api.github.com/users/sogelink/gists{/gist_id}","starred_url":"https://api.github.com/users/sogelink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sogelink/subscriptions","organizations_url":"https://api.github.com/users/sogelink/orgs","repos_url":"https://api.github.com/users/sogelink/repos","events_url":"https://api.github.com/users/sogelink/events{/privacy}","received_events_url":"https://api.github.com/users/sogelink/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sogelink/webpack-cdn-plugin","description":"A webpack plugin that use externals of CDN urls for production and local node_modules for development","fork":true,"url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin","forks_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/forks","keys_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/teams","hooks_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/hooks","issue_events_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/events","assignees_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/tags","blobs_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/languages","stargazers_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/stargazers","contributors_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/contributors","subscribers_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/subscribers","subscription_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/subscription","commits_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/merges","archive_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/downloads","issues_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/labels{/name}","releases_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/sogelink/webpack-cdn-plugin/deployments","created_at":"2018-06-15T12:13:57Z","updated_at":"2018-06-15T12:13:59Z","pushed_at":"2018-06-19T07:19:38Z","git_url":"git://github.com/sogelink/webpack-cdn-plugin.git","ssh_url":"git@github.com:sogelink/webpack-cdn-plugin.git","clone_url":"https://github.com/sogelink/webpack-cdn-plugin.git","svn_url":"https://github.com/sogelink/webpack-cdn-plugin","homepage":null,"size":219,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"van-nguyen:master","ref":"master","sha":"c883cf33697590e7086c1be310ae6a078755c415","user":{"login":"van-nguyen","id":1149825,"node_id":"MDQ6VXNlcjExNDk4MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1149825?v=4","gravatar_id":"","url":"https://api.github.com/users/van-nguyen","html_url":"https://github.com/van-nguyen","followers_url":"https://api.github.com/users/van-nguyen/followers","following_url":"https://api.github.com/users/van-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/van-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/van-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/van-nguyen/subscriptions","organizations_url":"https://api.github.com/users/van-nguyen/orgs","repos_url":"https://api.github.com/users/van-nguyen/repos","events_url":"https://api.github.com/users/van-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/van-nguyen/received_events","type":"User","site_admin":false},"repo":{"id":90877626,"node_id":"MDEwOlJlcG9zaXRvcnk5MDg3NzYyNg==","name":"webpack-cdn-plugin","full_name":"van-nguyen/webpack-cdn-plugin","owner":{"login":"van-nguyen","id":1149825,"node_id":"MDQ6VXNlcjExNDk4MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1149825?v=4","gravatar_id":"","url":"https://api.github.com/users/van-nguyen","html_url":"https://github.com/van-nguyen","followers_url":"https://api.github.com/users/van-nguyen/followers","following_url":"https://api.github.com/users/van-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/van-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/van-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/van-nguyen/subscriptions","organizations_url":"https://api.github.com/users/van-nguyen/orgs","repos_url":"https://api.github.com/users/van-nguyen/repos","events_url":"https://api.github.com/users/van-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/van-nguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/van-nguyen/webpack-cdn-plugin","description":"A webpack plugin that use externals of CDN urls for production and local node_modules for development","fork":false,"url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin","forks_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/forks","keys_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/teams","hooks_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/hooks","issue_events_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/events","assignees_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/tags","blobs_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/languages","stargazers_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/stargazers","contributors_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/contributors","subscribers_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/subscribers","subscription_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/subscription","commits_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/merges","archive_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/downloads","issues_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/labels{/name}","releases_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/deployments","created_at":"2017-05-10T15:06:39Z","updated_at":"2018-06-16T16:15:29Z","pushed_at":"2018-06-18T11:43:35Z","git_url":"git://github.com/van-nguyen/webpack-cdn-plugin.git","ssh_url":"git@github.com:van-nguyen/webpack-cdn-plugin.git","clone_url":"https://github.com/van-nguyen/webpack-cdn-plugin.git","svn_url":"https://github.com/van-nguyen/webpack-cdn-plugin","homepage":null,"size":214,"stargazers_count":108,"watchers_count":108,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":19,"open_issues":7,"watchers":108,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/25"},"html":{"href":"https://github.com/van-nguyen/webpack-cdn-plugin/pull/25"},"issue":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues/25"},"comments":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/van-nguyen/webpack-cdn-plugin/statuses/8c6f342512577fa827dacd6454110aa3329fa336"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":46,"deletions":3,"changed_files":3}}
{"actor":{"display_login":"mistic100"}}