{"action":"opened","number":568,"pull_request":{"url":"https://api.github.com/repos/kangax/html-minifier/pulls/568","id":63432357,"html_url":"https://github.com/kangax/html-minifier/pull/568","diff_url":"https://github.com/kangax/html-minifier/pull/568.diff","patch_url":"https://github.com/kangax/html-minifier/pull/568.patch","issue_url":"https://api.github.com/repos/kangax/html-minifier/issues/568","number":568,"state":"open","locked":false,"title":"fix the static analysis of Webpack","user":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"body":"That's is following this [short discussion](https://github.com/kangax/html-minifier/pull/531/files/0daf110770393f079da6d6fb66576fdcc6eafd35#r56428013).\r\nWebpack is doing a static analysis of the source file do determine the used dependencies.\r\nUsing a runtime resolution of the dependency isn't something he can handle out of the box\r\n```js\r\nrequire(path);\r\n```\r\nThat's the best fix I have in mind.","created_at":"2016-03-18T20:33:12Z","updated_at":"2016-03-18T20:33:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kangax/html-minifier/pulls/568/commits","review_comments_url":"https://api.github.com/repos/kangax/html-minifier/pulls/568/comments","review_comment_url":"https://api.github.com/repos/kangax/html-minifier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kangax/html-minifier/issues/568/comments","statuses_url":"https://api.github.com/repos/kangax/html-minifier/statuses/b52f66699c7a3aed3fbf0c269ce39ff2fb712a75","head":{"label":"oliviertassinari:fix-webpack","ref":"fix-webpack","sha":"b52f66699c7a3aed3fbf0c269ce39ff2fb712a75","user":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"repo":{"id":54229564,"name":"html-minifier","full_name":"oliviertassinari/html-minifier","owner":{"login":"oliviertassinari","id":3165635,"avatar_url":"https://avatars.githubusercontent.com/u/3165635?v=3","gravatar_id":"","url":"https://api.github.com/users/oliviertassinari","html_url":"https://github.com/oliviertassinari","followers_url":"https://api.github.com/users/oliviertassinari/followers","following_url":"https://api.github.com/users/oliviertassinari/following{/other_user}","gists_url":"https://api.github.com/users/oliviertassinari/gists{/gist_id}","starred_url":"https://api.github.com/users/oliviertassinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliviertassinari/subscriptions","organizations_url":"https://api.github.com/users/oliviertassinari/orgs","repos_url":"https://api.github.com/users/oliviertassinari/repos","events_url":"https://api.github.com/users/oliviertassinari/events{/privacy}","received_events_url":"https://api.github.com/users/oliviertassinari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oliviertassinari/html-minifier","description":"Javascript-based HTML compressor/minifier (with Node.js support)","fork":true,"url":"https://api.github.com/repos/oliviertassinari/html-minifier","forks_url":"https://api.github.com/repos/oliviertassinari/html-minifier/forks","keys_url":"https://api.github.com/repos/oliviertassinari/html-minifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oliviertassinari/html-minifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oliviertassinari/html-minifier/teams","hooks_url":"https://api.github.com/repos/oliviertassinari/html-minifier/hooks","issue_events_url":"https://api.github.com/repos/oliviertassinari/html-minifier/issues/events{/number}","events_url":"https://api.github.com/repos/oliviertassinari/html-minifier/events","assignees_url":"https://api.github.com/repos/oliviertassinari/html-minifier/assignees{/user}","branches_url":"https://api.github.com/repos/oliviertassinari/html-minifier/branches{/branch}","tags_url":"https://api.github.com/repos/oliviertassinari/html-minifier/tags","blobs_url":"https://api.github.com/repos/oliviertassinari/html-minifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oliviertassinari/html-minifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oliviertassinari/html-minifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/oliviertassinari/html-minifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oliviertassinari/html-minifier/statuses/{sha}","languages_url":"https://api.github.com/repos/oliviertassinari/html-minifier/languages","stargazers_url":"https://api.github.com/repos/oliviertassinari/html-minifier/stargazers","contributors_url":"https://api.github.com/repos/oliviertassinari/html-minifier/contributors","subscribers_url":"https://api.github.com/repos/oliviertassinari/html-minifier/subscribers","subscription_url":"https://api.github.com/repos/oliviertassinari/html-minifier/subscription","commits_url":"https://api.github.com/repos/oliviertassinari/html-minifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/oliviertassinari/html-minifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/oliviertassinari/html-minifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/oliviertassinari/html-minifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/oliviertassinari/html-minifier/contents/{+path}","compare_url":"https://api.github.com/repos/oliviertassinari/html-minifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oliviertassinari/html-minifier/merges","archive_url":"https://api.github.com/repos/oliviertassinari/html-minifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oliviertassinari/html-minifier/downloads","issues_url":"https://api.github.com/repos/oliviertassinari/html-minifier/issues{/number}","pulls_url":"https://api.github.com/repos/oliviertassinari/html-minifier/pulls{/number}","milestones_url":"https://api.github.com/repos/oliviertassinari/html-minifier/milestones{/number}","notifications_url":"https://api.github.com/repos/oliviertassinari/html-minifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oliviertassinari/html-minifier/labels{/name}","releases_url":"https://api.github.com/repos/oliviertassinari/html-minifier/releases{/id}","deployments_url":"https://api.github.com/repos/oliviertassinari/html-minifier/deployments","created_at":"2016-03-18T20:29:35Z","updated_at":"2016-03-18T20:29:35Z","pushed_at":"2016-03-18T20:30:08Z","git_url":"git://github.com/oliviertassinari/html-minifier.git","ssh_url":"git@github.com:oliviertassinari/html-minifier.git","clone_url":"https://github.com/oliviertassinari/html-minifier.git","svn_url":"https://github.com/oliviertassinari/html-minifier","homepage":"http://kangax.github.com/html-minifier/","size":4689,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"kangax:gh-pages","ref":"gh-pages","sha":"a0aad9644d108e376747458e33c4ee5b3e0d464f","user":{"login":"kangax","id":383,"avatar_url":"https://avatars.githubusercontent.com/u/383?v=3","gravatar_id":"","url":"https://api.github.com/users/kangax","html_url":"https://github.com/kangax","followers_url":"https://api.github.com/users/kangax/followers","following_url":"https://api.github.com/users/kangax/following{/other_user}","gists_url":"https://api.github.com/users/kangax/gists{/gist_id}","starred_url":"https://api.github.com/users/kangax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangax/subscriptions","organizations_url":"https://api.github.com/users/kangax/orgs","repos_url":"https://api.github.com/users/kangax/repos","events_url":"https://api.github.com/users/kangax/events{/privacy}","received_events_url":"https://api.github.com/users/kangax/received_events","type":"User","site_admin":false},"repo":{"id":504220,"name":"html-minifier","full_name":"kangax/html-minifier","owner":{"login":"kangax","id":383,"avatar_url":"https://avatars.githubusercontent.com/u/383?v=3","gravatar_id":"","url":"https://api.github.com/users/kangax","html_url":"https://github.com/kangax","followers_url":"https://api.github.com/users/kangax/followers","following_url":"https://api.github.com/users/kangax/following{/other_user}","gists_url":"https://api.github.com/users/kangax/gists{/gist_id}","starred_url":"https://api.github.com/users/kangax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kangax/subscriptions","organizations_url":"https://api.github.com/users/kangax/orgs","repos_url":"https://api.github.com/users/kangax/repos","events_url":"https://api.github.com/users/kangax/events{/privacy}","received_events_url":"https://api.github.com/users/kangax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kangax/html-minifier","description":"Javascript-based HTML compressor/minifier (with Node.js support)","fork":false,"url":"https://api.github.com/repos/kangax/html-minifier","forks_url":"https://api.github.com/repos/kangax/html-minifier/forks","keys_url":"https://api.github.com/repos/kangax/html-minifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kangax/html-minifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kangax/html-minifier/teams","hooks_url":"https://api.github.com/repos/kangax/html-minifier/hooks","issue_events_url":"https://api.github.com/repos/kangax/html-minifier/issues/events{/number}","events_url":"https://api.github.com/repos/kangax/html-minifier/events","assignees_url":"https://api.github.com/repos/kangax/html-minifier/assignees{/user}","branches_url":"https://api.github.com/repos/kangax/html-minifier/branches{/branch}","tags_url":"https://api.github.com/repos/kangax/html-minifier/tags","blobs_url":"https://api.github.com/repos/kangax/html-minifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kangax/html-minifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kangax/html-minifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/kangax/html-minifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kangax/html-minifier/statuses/{sha}","languages_url":"https://api.github.com/repos/kangax/html-minifier/languages","stargazers_url":"https://api.github.com/repos/kangax/html-minifier/stargazers","contributors_url":"https://api.github.com/repos/kangax/html-minifier/contributors","subscribers_url":"https://api.github.com/repos/kangax/html-minifier/subscribers","subscription_url":"https://api.github.com/repos/kangax/html-minifier/subscription","commits_url":"https://api.github.com/repos/kangax/html-minifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/kangax/html-minifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/kangax/html-minifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/kangax/html-minifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/kangax/html-minifier/contents/{+path}","compare_url":"https://api.github.com/repos/kangax/html-minifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kangax/html-minifier/merges","archive_url":"https://api.github.com/repos/kangax/html-minifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kangax/html-minifier/downloads","issues_url":"https://api.github.com/repos/kangax/html-minifier/issues{/number}","pulls_url":"https://api.github.com/repos/kangax/html-minifier/pulls{/number}","milestones_url":"https://api.github.com/repos/kangax/html-minifier/milestones{/number}","notifications_url":"https://api.github.com/repos/kangax/html-minifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kangax/html-minifier/labels{/name}","releases_url":"https://api.github.com/repos/kangax/html-minifier/releases{/id}","deployments_url":"https://api.github.com/repos/kangax/html-minifier/deployments","created_at":"2010-02-05T17:54:35Z","updated_at":"2016-03-18T13:16:38Z","pushed_at":"2016-03-18T11:12:46Z","git_url":"git://github.com/kangax/html-minifier.git","ssh_url":"git@github.com:kangax/html-minifier.git","clone_url":"https://github.com/kangax/html-minifier.git","svn_url":"https://github.com/kangax/html-minifier","homepage":"http://kangax.github.com/html-minifier/","size":5119,"stargazers_count":1396,"watchers_count":1396,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":167,"mirror_url":null,"open_issues_count":29,"forks":167,"open_issues":29,"watchers":1396,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/kangax/html-minifier/pulls/568"},"html":{"href":"https://github.com/kangax/html-minifier/pull/568"},"issue":{"href":"https://api.github.com/repos/kangax/html-minifier/issues/568"},"comments":{"href":"https://api.github.com/repos/kangax/html-minifier/issues/568/comments"},"review_comments":{"href":"https://api.github.com/repos/kangax/html-minifier/pulls/568/comments"},"review_comment":{"href":"https://api.github.com/repos/kangax/html-minifier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kangax/html-minifier/pulls/568/commits"},"statuses":{"href":"https://api.github.com/repos/kangax/html-minifier/statuses/b52f66699c7a3aed3fbf0c269ce39ff2fb712a75"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":10,"changed_files":1}}