{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1327","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/1327/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1327/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1327/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/1327","id":315768340,"number":1327,"title":".webpackrc.js 中env 下的参数如何获取？","user":{"login":"yanweitao","id":28556787,"avatar_url":"https://avatars1.githubusercontent.com/u/28556787?v=4","gravatar_id":"","url":"https://api.github.com/users/yanweitao","html_url":"https://github.com/yanweitao","followers_url":"https://api.github.com/users/yanweitao/followers","following_url":"https://api.github.com/users/yanweitao/following{/other_user}","gists_url":"https://api.github.com/users/yanweitao/gists{/gist_id}","starred_url":"https://api.github.com/users/yanweitao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanweitao/subscriptions","organizations_url":"https://api.github.com/users/yanweitao/orgs","repos_url":"https://api.github.com/users/yanweitao/repos","events_url":"https://api.github.com/users/yanweitao/events{/privacy}","received_events_url":"https://api.github.com/users/yanweitao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-19T08:04:42Z","updated_at":"2018-04-19T08:04:43Z","closed_at":null,"author_association":"NONE","body":".webpackrc.js 中env下的参数可以自定义吗？比如说我像把server端的请求域名放在这里，根据环境的不同可以拿到不同的域名。可以做吗？\r\n如果可以，那如何获取.webpackrc.js中env 下的参数？如何指定加载的环境\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/382647361","html_url":"https://github.com/ant-design/ant-design-pro/issues/1327#issuecomment-382647361","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1327","id":382647361,"user":{"login":"ant-design-bot","id":26566442,"avatar_url":"https://avatars0.githubusercontent.com/u/26566442?v=4","gravatar_id":"","url":"https://api.github.com/users/ant-design-bot","html_url":"https://github.com/ant-design-bot","followers_url":"https://api.github.com/users/ant-design-bot/followers","following_url":"https://api.github.com/users/ant-design-bot/following{/other_user}","gists_url":"https://api.github.com/users/ant-design-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design-bot/subscriptions","organizations_url":"https://api.github.com/users/ant-design-bot/orgs","repos_url":"https://api.github.com/users/ant-design-bot/repos","events_url":"https://api.github.com/users/ant-design-bot/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design-bot/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T08:04:43Z","updated_at":"2018-04-19T08:04:43Z","author_association":"NONE","body":"Translation of this issue:\n\n<hr/>\n\n## .webpackrc.js how to get the parameters under env?\n\nCan the parameters in env in .webpackrc.js be customized? For example, I like to put the requested domain name on the server side here, depending on the environment can get different domain names. Can you do it?\r\nIf so, how do you get the parameters under env in .webpackrc.js? How to specify the loaded environment"}}
{"actor":{"display_login":"ant-design-bot"}}