{"action":"opened","issue":{"url":"https://api.github.com/repos/baihuibo/gulp-cmd-pack/issues/3","repository_url":"https://api.github.com/repos/baihuibo/gulp-cmd-pack","labels_url":"https://api.github.com/repos/baihuibo/gulp-cmd-pack/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/baihuibo/gulp-cmd-pack/issues/3/comments","events_url":"https://api.github.com/repos/baihuibo/gulp-cmd-pack/issues/3/events","html_url":"https://github.com/baihuibo/gulp-cmd-pack/issues/3","id":166278320,"number":3,"title":"js后缀判断问题","user":{"login":"oddjohn","id":5519703,"avatar_url":"https://avatars.githubusercontent.com/u/5519703?v=3","gravatar_id":"","url":"https://api.github.com/users/oddjohn","html_url":"https://github.com/oddjohn","followers_url":"https://api.github.com/users/oddjohn/followers","following_url":"https://api.github.com/users/oddjohn/following{/other_user}","gists_url":"https://api.github.com/users/oddjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/oddjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddjohn/subscriptions","organizations_url":"https://api.github.com/users/oddjohn/orgs","repos_url":"https://api.github.com/users/oddjohn/repos","events_url":"https://api.github.com/users/oddjohn/events{/privacy}","received_events_url":"https://api.github.com/users/oddjohn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-19T08:45:50Z","updated_at":"2016-07-19T08:45:50Z","closed_at":null,"body":"现在对后缀的判断比较弱，能否加上js后缀的判断，这样如require('foo.min')这样的才能加上js后缀\r\n```\r\nif (!path.extname(ret) || path.extname(ret) != '.js') {\r\n        ret += '.js';\r\n }\r\n```"}}
{"actor":{"display_login":"oddjohn"}}