{"action":"created","issue":{"url":"https://api.github.com/repos/amireh/happypack/issues/106","repository_url":"https://api.github.com/repos/amireh/happypack","labels_url":"https://api.github.com/repos/amireh/happypack/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/amireh/happypack/issues/106/comments","events_url":"https://api.github.com/repos/amireh/happypack/issues/106/events","html_url":"https://github.com/amireh/happypack/pull/106","id":191150039,"number":106,"title":"Allow option 'plugins' to be a function in HappyLoader","user":{"login":"grigory51","id":1757481,"avatar_url":"https://avatars.githubusercontent.com/u/1757481?v=3","gravatar_id":"","url":"https://api.github.com/users/grigory51","html_url":"https://github.com/grigory51","followers_url":"https://api.github.com/users/grigory51/followers","following_url":"https://api.github.com/users/grigory51/following{/other_user}","gists_url":"https://api.github.com/users/grigory51/gists{/gist_id}","starred_url":"https://api.github.com/users/grigory51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grigory51/subscriptions","organizations_url":"https://api.github.com/users/grigory51/orgs","repos_url":"https://api.github.com/users/grigory51/repos","events_url":"https://api.github.com/users/grigory51/events{/privacy}","received_events_url":"https://api.github.com/users/grigory51/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-22T23:09:17Z","updated_at":"2016-12-29T07:06:41Z","closed_at":"2016-12-29T05:52:02Z","pull_request":{"url":"https://api.github.com/repos/amireh/happypack/pulls/106","html_url":"https://github.com/amireh/happypack/pull/106","diff_url":"https://github.com/amireh/happypack/pull/106.diff","patch_url":"https://github.com/amireh/happypack/pull/106.patch"},"body":"Hello,\r\nI made it available to make 'plugins' in HappyLoader a function.\r\n\r\nIt may be useful for integration with webpack >= 2.1.0-beta.23 which has a new mechanism of loading options with LoaderOptionsPlugin\r\n\r\nIf we define LoaderOptionsPlugin as:\r\n```\r\nvar plugins = [ new webpack.LoaderOptionsPlugin({\r\n        options: {\r\n            plugins: function () {return plugins;}\r\n        },\r\n    })\r\n    ...\r\n];\r\n\r\nmodule.exports = {\r\n    entry: entries,\r\n    plugins: plugins\r\n    ...\r\n};\r\n```\r\n`plugins` will be available in HappyLoader, and HappyPack won't be broken. "},"comment":{"url":"https://api.github.com/repos/amireh/happypack/issues/comments/269590526","html_url":"https://github.com/amireh/happypack/pull/106#issuecomment-269590526","issue_url":"https://api.github.com/repos/amireh/happypack/issues/106","id":269590526,"user":{"login":"amireh","id":153786,"avatar_url":"https://avatars.githubusercontent.com/u/153786?v=3","gravatar_id":"","url":"https://api.github.com/users/amireh","html_url":"https://github.com/amireh","followers_url":"https://api.github.com/users/amireh/followers","following_url":"https://api.github.com/users/amireh/following{/other_user}","gists_url":"https://api.github.com/users/amireh/gists{/gist_id}","starred_url":"https://api.github.com/users/amireh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amireh/subscriptions","organizations_url":"https://api.github.com/users/amireh/orgs","repos_url":"https://api.github.com/users/amireh/repos","events_url":"https://api.github.com/users/amireh/events{/privacy}","received_events_url":"https://api.github.com/users/amireh/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T07:06:41Z","updated_at":"2016-12-29T07:06:41Z","body":"I'll do it shortly"}}
{"actor":{"display_login":"amireh"}}