Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update env.md documentation (rails#2630)
While trying to get a clean Rails + Webpacker project going with `dotenv` I noticed that my environment variables weren't being picked up by webpack, even after following this doc. Adding these lines to my `environment.js` file fixes the issue. While I think there's a plugin like this in the default plugins, I have the feeling that changes to `process.env` made by `dotenv` are not being picked up in that plugin, which is why I think we need to redefine the plugin after we call `dotenv.config`.
- Loading branch information