{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/8","id":127527676,"html_url":"https://github.com/liyanlong/nuxt-egg/pull/8","diff_url":"https://github.com/liyanlong/nuxt-egg/pull/8.diff","patch_url":"https://github.com/liyanlong/nuxt-egg/pull/8.patch","issue_url":"https://api.github.com/repos/liyanlong/nuxt-egg/issues/8","number":8,"state":"closed","locked":false,"title":"fix: webpack hot reload in dev mode","user":{"login":"binsee","id":5285894,"avatar_url":"https://avatars0.githubusercontent.com/u/5285894?v=3","gravatar_id":"","url":"https://api.github.com/users/binsee","html_url":"https://github.com/binsee","followers_url":"https://api.github.com/users/binsee/followers","following_url":"https://api.github.com/users/binsee/following{/other_user}","gists_url":"https://api.github.com/users/binsee/gists{/gist_id}","starred_url":"https://api.github.com/users/binsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binsee/subscriptions","organizations_url":"https://api.github.com/users/binsee/orgs","repos_url":"https://api.github.com/users/binsee/repos","events_url":"https://api.github.com/users/binsee/events{/privacy}","received_events_url":"https://api.github.com/users/binsee/received_events","type":"User","site_admin":false},"body":"fixed #6\r\n\r\n分析：\r\n经过测试，目前定位问题在于当nuxt作为核心中间件注册后。\r\nwebpack热重载所请求的`/__webpack_hmr` 应作为 websockt 进行响应，而egg其他的中间件将此请求作为一般请求进行了处理。\r\n\r\n解决方式：\r\n在nuxt中间件中，判断请求为 `/__webpack_hmr`  时，直接转交nuxt进行渲染处理，不再经过其他中间件。","created_at":"2017-06-26T17:57:15Z","updated_at":"2017-06-29T03:22:45Z","closed_at":"2017-06-29T03:22:45Z","merged_at":"2017-06-29T03:22:45Z","merge_commit_sha":"3c130f1e52982477639771ffe5be8175c2ffe892","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/8/commits","review_comments_url":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/8/comments","review_comment_url":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/liyanlong/nuxt-egg/issues/8/comments","statuses_url":"https://api.github.com/repos/liyanlong/nuxt-egg/statuses/0e16647d21b92a367c8df9dcbc0743b7db8d3949","head":{"label":"binsee:fix-hot-reload","ref":"fix-hot-reload","sha":"0e16647d21b92a367c8df9dcbc0743b7db8d3949","user":{"login":"binsee","id":5285894,"avatar_url":"https://avatars0.githubusercontent.com/u/5285894?v=3","gravatar_id":"","url":"https://api.github.com/users/binsee","html_url":"https://github.com/binsee","followers_url":"https://api.github.com/users/binsee/followers","following_url":"https://api.github.com/users/binsee/following{/other_user}","gists_url":"https://api.github.com/users/binsee/gists{/gist_id}","starred_url":"https://api.github.com/users/binsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binsee/subscriptions","organizations_url":"https://api.github.com/users/binsee/orgs","repos_url":"https://api.github.com/users/binsee/repos","events_url":"https://api.github.com/users/binsee/events{/privacy}","received_events_url":"https://api.github.com/users/binsee/received_events","type":"User","site_admin":false},"repo":{"id":95227709,"name":"nuxt-egg","full_name":"binsee/nuxt-egg","owner":{"login":"binsee","id":5285894,"avatar_url":"https://avatars0.githubusercontent.com/u/5285894?v=3","gravatar_id":"","url":"https://api.github.com/users/binsee","html_url":"https://github.com/binsee","followers_url":"https://api.github.com/users/binsee/followers","following_url":"https://api.github.com/users/binsee/following{/other_user}","gists_url":"https://api.github.com/users/binsee/gists{/gist_id}","starred_url":"https://api.github.com/users/binsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binsee/subscriptions","organizations_url":"https://api.github.com/users/binsee/orgs","repos_url":"https://api.github.com/users/binsee/repos","events_url":"https://api.github.com/users/binsee/events{/privacy}","received_events_url":"https://api.github.com/users/binsee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binsee/nuxt-egg","description":"Nuxt.js  + Egg FrameWork","fork":true,"url":"https://api.github.com/repos/binsee/nuxt-egg","forks_url":"https://api.github.com/repos/binsee/nuxt-egg/forks","keys_url":"https://api.github.com/repos/binsee/nuxt-egg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binsee/nuxt-egg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binsee/nuxt-egg/teams","hooks_url":"https://api.github.com/repos/binsee/nuxt-egg/hooks","issue_events_url":"https://api.github.com/repos/binsee/nuxt-egg/issues/events{/number}","events_url":"https://api.github.com/repos/binsee/nuxt-egg/events","assignees_url":"https://api.github.com/repos/binsee/nuxt-egg/assignees{/user}","branches_url":"https://api.github.com/repos/binsee/nuxt-egg/branches{/branch}","tags_url":"https://api.github.com/repos/binsee/nuxt-egg/tags","blobs_url":"https://api.github.com/repos/binsee/nuxt-egg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binsee/nuxt-egg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binsee/nuxt-egg/git/refs{/sha}","trees_url":"https://api.github.com/repos/binsee/nuxt-egg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binsee/nuxt-egg/statuses/{sha}","languages_url":"https://api.github.com/repos/binsee/nuxt-egg/languages","stargazers_url":"https://api.github.com/repos/binsee/nuxt-egg/stargazers","contributors_url":"https://api.github.com/repos/binsee/nuxt-egg/contributors","subscribers_url":"https://api.github.com/repos/binsee/nuxt-egg/subscribers","subscription_url":"https://api.github.com/repos/binsee/nuxt-egg/subscription","commits_url":"https://api.github.com/repos/binsee/nuxt-egg/commits{/sha}","git_commits_url":"https://api.github.com/repos/binsee/nuxt-egg/git/commits{/sha}","comments_url":"https://api.github.com/repos/binsee/nuxt-egg/comments{/number}","issue_comment_url":"https://api.github.com/repos/binsee/nuxt-egg/issues/comments{/number}","contents_url":"https://api.github.com/repos/binsee/nuxt-egg/contents/{+path}","compare_url":"https://api.github.com/repos/binsee/nuxt-egg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binsee/nuxt-egg/merges","archive_url":"https://api.github.com/repos/binsee/nuxt-egg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binsee/nuxt-egg/downloads","issues_url":"https://api.github.com/repos/binsee/nuxt-egg/issues{/number}","pulls_url":"https://api.github.com/repos/binsee/nuxt-egg/pulls{/number}","milestones_url":"https://api.github.com/repos/binsee/nuxt-egg/milestones{/number}","notifications_url":"https://api.github.com/repos/binsee/nuxt-egg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binsee/nuxt-egg/labels{/name}","releases_url":"https://api.github.com/repos/binsee/nuxt-egg/releases{/id}","deployments_url":"https://api.github.com/repos/binsee/nuxt-egg/deployments","created_at":"2017-06-23T14:27:53Z","updated_at":"2017-06-23T14:27:54Z","pushed_at":"2017-06-26T18:10:57Z","git_url":"git://github.com/binsee/nuxt-egg.git","ssh_url":"git@github.com:binsee/nuxt-egg.git","clone_url":"https://github.com/binsee/nuxt-egg.git","svn_url":"https://github.com/binsee/nuxt-egg","homepage":"http://nuxt-egg.liylblog.com/","size":34,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"liyanlong:master","ref":"master","sha":"3c14823207c9943be35f20a17a08afa505235f16","user":{"login":"liyanlong","id":8005864,"avatar_url":"https://avatars3.githubusercontent.com/u/8005864?v=3","gravatar_id":"","url":"https://api.github.com/users/liyanlong","html_url":"https://github.com/liyanlong","followers_url":"https://api.github.com/users/liyanlong/followers","following_url":"https://api.github.com/users/liyanlong/following{/other_user}","gists_url":"https://api.github.com/users/liyanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanlong/subscriptions","organizations_url":"https://api.github.com/users/liyanlong/orgs","repos_url":"https://api.github.com/users/liyanlong/repos","events_url":"https://api.github.com/users/liyanlong/events{/privacy}","received_events_url":"https://api.github.com/users/liyanlong/received_events","type":"User","site_admin":false},"repo":{"id":82360836,"name":"nuxt-egg","full_name":"liyanlong/nuxt-egg","owner":{"login":"liyanlong","id":8005864,"avatar_url":"https://avatars3.githubusercontent.com/u/8005864?v=3","gravatar_id":"","url":"https://api.github.com/users/liyanlong","html_url":"https://github.com/liyanlong","followers_url":"https://api.github.com/users/liyanlong/followers","following_url":"https://api.github.com/users/liyanlong/following{/other_user}","gists_url":"https://api.github.com/users/liyanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanlong/subscriptions","organizations_url":"https://api.github.com/users/liyanlong/orgs","repos_url":"https://api.github.com/users/liyanlong/repos","events_url":"https://api.github.com/users/liyanlong/events{/privacy}","received_events_url":"https://api.github.com/users/liyanlong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liyanlong/nuxt-egg","description":"Nuxt.js  + Egg FrameWork","fork":false,"url":"https://api.github.com/repos/liyanlong/nuxt-egg","forks_url":"https://api.github.com/repos/liyanlong/nuxt-egg/forks","keys_url":"https://api.github.com/repos/liyanlong/nuxt-egg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liyanlong/nuxt-egg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liyanlong/nuxt-egg/teams","hooks_url":"https://api.github.com/repos/liyanlong/nuxt-egg/hooks","issue_events_url":"https://api.github.com/repos/liyanlong/nuxt-egg/issues/events{/number}","events_url":"https://api.github.com/repos/liyanlong/nuxt-egg/events","assignees_url":"https://api.github.com/repos/liyanlong/nuxt-egg/assignees{/user}","branches_url":"https://api.github.com/repos/liyanlong/nuxt-egg/branches{/branch}","tags_url":"https://api.github.com/repos/liyanlong/nuxt-egg/tags","blobs_url":"https://api.github.com/repos/liyanlong/nuxt-egg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liyanlong/nuxt-egg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liyanlong/nuxt-egg/git/refs{/sha}","trees_url":"https://api.github.com/repos/liyanlong/nuxt-egg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liyanlong/nuxt-egg/statuses/{sha}","languages_url":"https://api.github.com/repos/liyanlong/nuxt-egg/languages","stargazers_url":"https://api.github.com/repos/liyanlong/nuxt-egg/stargazers","contributors_url":"https://api.github.com/repos/liyanlong/nuxt-egg/contributors","subscribers_url":"https://api.github.com/repos/liyanlong/nuxt-egg/subscribers","subscription_url":"https://api.github.com/repos/liyanlong/nuxt-egg/subscription","commits_url":"https://api.github.com/repos/liyanlong/nuxt-egg/commits{/sha}","git_commits_url":"https://api.github.com/repos/liyanlong/nuxt-egg/git/commits{/sha}","comments_url":"https://api.github.com/repos/liyanlong/nuxt-egg/comments{/number}","issue_comment_url":"https://api.github.com/repos/liyanlong/nuxt-egg/issues/comments{/number}","contents_url":"https://api.github.com/repos/liyanlong/nuxt-egg/contents/{+path}","compare_url":"https://api.github.com/repos/liyanlong/nuxt-egg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liyanlong/nuxt-egg/merges","archive_url":"https://api.github.com/repos/liyanlong/nuxt-egg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liyanlong/nuxt-egg/downloads","issues_url":"https://api.github.com/repos/liyanlong/nuxt-egg/issues{/number}","pulls_url":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls{/number}","milestones_url":"https://api.github.com/repos/liyanlong/nuxt-egg/milestones{/number}","notifications_url":"https://api.github.com/repos/liyanlong/nuxt-egg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liyanlong/nuxt-egg/labels{/name}","releases_url":"https://api.github.com/repos/liyanlong/nuxt-egg/releases{/id}","deployments_url":"https://api.github.com/repos/liyanlong/nuxt-egg/deployments","created_at":"2017-02-18T04:19:49Z","updated_at":"2017-06-21T14:17:30Z","pushed_at":"2017-06-29T03:22:45Z","git_url":"git://github.com/liyanlong/nuxt-egg.git","ssh_url":"git@github.com:liyanlong/nuxt-egg.git","clone_url":"https://github.com/liyanlong/nuxt-egg.git","svn_url":"https://github.com/liyanlong/nuxt-egg","homepage":"http://nuxt-egg.liylblog.com/","size":54,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/8"},"html":{"href":"https://github.com/liyanlong/nuxt-egg/pull/8"},"issue":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/issues/8"},"comments":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/liyanlong/nuxt-egg/statuses/0e16647d21b92a367c8df9dcbc0743b7db8d3949"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"liyanlong","id":8005864,"avatar_url":"https://avatars3.githubusercontent.com/u/8005864?v=3","gravatar_id":"","url":"https://api.github.com/users/liyanlong","html_url":"https://github.com/liyanlong","followers_url":"https://api.github.com/users/liyanlong/followers","following_url":"https://api.github.com/users/liyanlong/following{/other_user}","gists_url":"https://api.github.com/users/liyanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/liyanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyanlong/subscriptions","organizations_url":"https://api.github.com/users/liyanlong/orgs","repos_url":"https://api.github.com/users/liyanlong/repos","events_url":"https://api.github.com/users/liyanlong/events{/privacy}","received_events_url":"https://api.github.com/users/liyanlong/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":29,"deletions":24,"changed_files":3}}
{"actor":{"display_login":"liyanlong"}}