{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/6850","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/6850/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/6850/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/6850/events","html_url":"https://github.com/webpack/webpack/issues/6850","id":308098537,"number":6850,"title":"accessing process.env freshly in bundled code","user":{"login":"zhenyulin","id":3323196,"avatar_url":"https://avatars0.githubusercontent.com/u/3323196?v=4","gravatar_id":"","url":"https://api.github.com/users/zhenyulin","html_url":"https://github.com/zhenyulin","followers_url":"https://api.github.com/users/zhenyulin/followers","following_url":"https://api.github.com/users/zhenyulin/following{/other_user}","gists_url":"https://api.github.com/users/zhenyulin/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenyulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenyulin/subscriptions","organizations_url":"https://api.github.com/users/zhenyulin/orgs","repos_url":"https://api.github.com/users/zhenyulin/repos","events_url":"https://api.github.com/users/zhenyulin/events{/privacy}","received_events_url":"https://api.github.com/users/zhenyulin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T16:31:48Z","updated_at":"2018-03-23T16:34:59Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\nfeature\r\n\r\n**What is the current behavior?**\r\ncurrently process.env.VARS would be replaced the defined values in webpack.config.js, and remains fixed value after code being bundled, not possible to access process.env.VARS when running the bundled code.\r\n\r\n**What is the expected behavior?**\r\nbundled code still being able to access values set in process.env\r\n\r\n**If this is a feature request, what is motivation or use case for changing the behavior?**\r\ne.g. if I use webpack to bundle a node server code or an npm package code, where there're features that rely on dynamically set ENV_VARS, then this wouldn't work after code being bundled with webpack.\r\n\r\n**Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.**\r\n\r\nnode: carbon\r\nwebpack: latest\r\nOS: Mac OS"},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/375725050","html_url":"https://github.com/webpack/webpack/issues/6850#issuecomment-375725050","issue_url":"https://api.github.com/repos/webpack/webpack/issues/6850","id":375725050,"user":{"login":"ooflorent","id":168498,"avatar_url":"https://avatars0.githubusercontent.com/u/168498?v=4","gravatar_id":"","url":"https://api.github.com/users/ooflorent","html_url":"https://github.com/ooflorent","followers_url":"https://api.github.com/users/ooflorent/followers","following_url":"https://api.github.com/users/ooflorent/following{/other_user}","gists_url":"https://api.github.com/users/ooflorent/gists{/gist_id}","starred_url":"https://api.github.com/users/ooflorent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ooflorent/subscriptions","organizations_url":"https://api.github.com/users/ooflorent/orgs","repos_url":"https://api.github.com/users/ooflorent/repos","events_url":"https://api.github.com/users/ooflorent/events{/privacy}","received_events_url":"https://api.github.com/users/ooflorent/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T16:34:59Z","updated_at":"2018-03-23T16:34:59Z","author_association":"MEMBER","body":"Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem."}}
{"actor":{"display_login":"ooflorent"}}