{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/305","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/305/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/305/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/305","id":114034656,"number":305,"title":"How to detect from within a plugin whether the webpack is running a single build or a webpack-dev-server?","user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/Needs%20Response%20From%20Author","name":"Needs Response From Author","color":"eb6420"},{"url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/P4:%20Nice%20To%20Have","name":"P4: Nice To Have","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-10-29T11:58:01Z","updated_at":"2016-09-05T07:16:54Z","closed_at":"2016-09-05T07:16:54Z","body":"This plugin should only work when webpack is executed as a webpack-dev-server, https://github.com/gajus/write-file-webpack-plugin.\r\n\r\nHow do I detect within the plugin script whether the webpack is running a single build or a webpack-dev-server?"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/244674517","html_url":"https://github.com/webpack/webpack-dev-server/issues/305#issuecomment-244674517","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/305","id":244674517,"user":{"login":"gajus","id":973543,"avatar_url":"https://avatars.githubusercontent.com/u/973543?v=3","gravatar_id":"","url":"https://api.github.com/users/gajus","html_url":"https://github.com/gajus","followers_url":"https://api.github.com/users/gajus/followers","following_url":"https://api.github.com/users/gajus/following{/other_user}","gists_url":"https://api.github.com/users/gajus/gists{/gist_id}","starred_url":"https://api.github.com/users/gajus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gajus/subscriptions","organizations_url":"https://api.github.com/users/gajus/orgs","repos_url":"https://api.github.com/users/gajus/repos","events_url":"https://api.github.com/users/gajus/events{/privacy}","received_events_url":"https://api.github.com/users/gajus/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T07:16:54Z","updated_at":"2016-09-05T07:16:54Z","body":"@SpaceK33z thats what we are already doing\r\n\r\nhttps://github.com/gajus/write-file-webpack-plugin/blob/b5ec5c82b06109dd4d68b2bab4904845262290f3/src/index.js#L17\r\n\r\nIt feels a bit hacky though.\r\n\r\nOtherwise, it works."}}
{"actor":{"display_login":"gajus"}}