{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2919","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2919/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2919/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2919/events","html_url":"https://github.com/webpack/webpack/issues/2919","id":173497717,"number":2919,"title":"triggering a rebuild in --watch when an unbundled file changes (specifically, .env files)","user":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/webpack/webpack/labels/X0:%20need%20more%20information","name":"X0: need more information","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-26T16:57:37Z","updated_at":"2016-09-05T15:06:46Z","closed_at":"2016-09-05T15:06:46Z","body":"We have a project in which the environment variables can be overruled by an `.env` file that is handled by [habitat](http://npmjs.com/package/habitat), and have a webpack config that runs with `--watch` during development that we would like to trigger when the `.env` file is changed. However, since the file is not bundled in through a `require` (nor should, since it controls the environment, which we don't strictly want bundled in), the standard test/loader instruction doesn't do much. \r\n\r\nIs there an established way to trigger a rebuild while webpack is in --watch mode based on a file change that we *know* affects the build but isn't itself strictly speaking bundled in?"}}
{"actor":{"display_login":"sokra"}}