{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-cli/issues/351","repository_url":"https://api.github.com/repos/webpack/webpack-cli","labels_url":"https://api.github.com/repos/webpack/webpack-cli/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-cli/issues/351/comments","events_url":"https://api.github.com/repos/webpack/webpack-cli/issues/351/events","html_url":"https://github.com/webpack/webpack-cli/pull/351","id":306133885,"number":351,"title":"expose mode to webpack.config.js","user":{"login":"wood1986","id":5212215,"avatar_url":"https://avatars2.githubusercontent.com/u/5212215?v=4","gravatar_id":"","url":"https://api.github.com/users/wood1986","html_url":"https://github.com/wood1986","followers_url":"https://api.github.com/users/wood1986/followers","following_url":"https://api.github.com/users/wood1986/following{/other_user}","gists_url":"https://api.github.com/users/wood1986/gists{/gist_id}","starred_url":"https://api.github.com/users/wood1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wood1986/subscriptions","organizations_url":"https://api.github.com/users/wood1986/orgs","repos_url":"https://api.github.com/users/wood1986/repos","events_url":"https://api.github.com/users/wood1986/events{/privacy}","received_events_url":"https://api.github.com/users/wood1986/received_events","type":"User","site_admin":false},"labels":[{"id":796805016,"url":"https://api.github.com/repos/webpack/webpack-cli/labels/PR:%20CI-ok","name":"PR: CI-ok","color":"0e8a16","default":false},{"id":796805034,"url":"https://api.github.com/repos/webpack/webpack-cli/labels/PR:%20unreviewed","name":"PR: unreviewed","color":"afd8f7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-17T06:50:56Z","updated_at":"2018-03-17T19:16:17Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/webpack/webpack-cli/pulls/351","html_url":"https://github.com/webpack/webpack-cli/pull/351","diff_url":"https://github.com/webpack/webpack-cli/pull/351.diff","patch_url":"https://github.com/webpack/webpack-cli/pull/351.patch"},"body":"<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. -->\r\n\r\n**What kind of change does this PR introduce?**\r\n* Expose `--mode` information to `webpack.config.js`.\r\n* Before this, we have to use `const DEBUG = require(\"yargs\").argv.mode !== \"production\"`\r\n* After that, we can use the information inside `webpack` such that `webpack.mode.DEVELOPMENT`\r\n\r\n**Did you add tests for your changes?**\r\n\r\nSee `test/binCases/mode`"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-cli/issues/comments/373945567","html_url":"https://github.com/webpack/webpack-cli/pull/351#issuecomment-373945567","issue_url":"https://api.github.com/repos/webpack/webpack-cli/issues/351","id":373945567,"user":{"login":"webpack-bot","id":26676291,"avatar_url":"https://avatars0.githubusercontent.com/u/26676291?v=4","gravatar_id":"","url":"https://api.github.com/users/webpack-bot","html_url":"https://github.com/webpack-bot","followers_url":"https://api.github.com/users/webpack-bot/followers","following_url":"https://api.github.com/users/webpack-bot/following{/other_user}","gists_url":"https://api.github.com/users/webpack-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/webpack-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webpack-bot/subscriptions","organizations_url":"https://api.github.com/users/webpack-bot/orgs","repos_url":"https://api.github.com/users/webpack-bot/repos","events_url":"https://api.github.com/users/webpack-bot/events{/privacy}","received_events_url":"https://api.github.com/users/webpack-bot/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T19:16:17Z","updated_at":"2018-03-17T19:16:17Z","author_association":"NONE","body":"<!-- identifier: ci-result -->\n\nThank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon."}}
{"actor":{"display_login":"webpack-bot"}}