title: Is it possible to use dotenv in a react project?
body: <p>I am trying to set some environment variables (for making API calls to dev/prod endpoints, keys depending on dev/prod, etc.) and I'm wondering if using dotenv will work.</p>
  
  <p>I've installed dotenv, and I am using webpack.</p>
  
  <p>My webpack entry is <code>main.js</code>, so in this file I've put <code>require('dotenv').config()</code></p>
  
  <p>Then, in my webpack config, I've put this:</p>
  
  <pre><code>  new webpack.EnvironmentPlugin([
      'NODE_ENV',
      '__DEV_BASE_URL__'  //base url for dev api endpoints
    ])
  </code></pre>
  
  <p>However, it is still undefined.  How can I do this correctly?  </p>