{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1123","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1123/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1123/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1123/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/1123","id":306151226,"number":1123,"title":"是否存在有process.env.NODE_ENV === \"development\" 的环境变量提供判断？","user":{"login":"LaiHuanMin","id":24793529,"avatar_url":"https://avatars1.githubusercontent.com/u/24793529?v=4","gravatar_id":"","url":"https://api.github.com/users/LaiHuanMin","html_url":"https://github.com/LaiHuanMin","followers_url":"https://api.github.com/users/LaiHuanMin/followers","following_url":"https://api.github.com/users/LaiHuanMin/following{/other_user}","gists_url":"https://api.github.com/users/LaiHuanMin/gists{/gist_id}","starred_url":"https://api.github.com/users/LaiHuanMin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaiHuanMin/subscriptions","organizations_url":"https://api.github.com/users/LaiHuanMin/orgs","repos_url":"https://api.github.com/users/LaiHuanMin/repos","events_url":"https://api.github.com/users/LaiHuanMin/events{/privacy}","received_events_url":"https://api.github.com/users/LaiHuanMin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-17T12:04:53Z","updated_at":"2018-03-20T02:24:46Z","closed_at":null,"author_association":"NONE","body":"Hi！我刚接触AntDesign-Pro这个项目，但是因为开发过程中会写一些开发才执行的代码，需要一个类似process.env.NODE_ENV这样的值来判断。   \r\n尝试了以下代码到.webpackrc.js里面，结果行不通\r\n```js\r\n{\r\n   \"define\": {\r\n       // set env here\r\n   }\r\n}\r\n```\r\n同时还翻遍了.roadhog和Ant Deisgn Pro的文档和Issue，也没能找到关于这方面的实际解决办法，希望开发者解答一下，谢谢！"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/374450651","html_url":"https://github.com/ant-design/ant-design-pro/issues/1123#issuecomment-374450651","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1123","id":374450651,"user":{"login":"chenshuai2144","id":8186664,"avatar_url":"https://avatars0.githubusercontent.com/u/8186664?v=4","gravatar_id":"","url":"https://api.github.com/users/chenshuai2144","html_url":"https://github.com/chenshuai2144","followers_url":"https://api.github.com/users/chenshuai2144/followers","following_url":"https://api.github.com/users/chenshuai2144/following{/other_user}","gists_url":"https://api.github.com/users/chenshuai2144/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuai2144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuai2144/subscriptions","organizations_url":"https://api.github.com/users/chenshuai2144/orgs","repos_url":"https://api.github.com/users/chenshuai2144/repos","events_url":"https://api.github.com/users/chenshuai2144/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuai2144/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T02:24:46Z","updated_at":"2018-03-20T02:24:46Z","author_association":"COLLABORATOR","body":"process.env.NODE_ENV 是 node 的环境变量， 浏览器中是没有的。"}}
{"actor":{"display_login":"chenshuai2144"}}