title: Unable to access process.env variables with dotenv-webpack
body: <p>I'm trying to access my .env file variables using dotenv-webpack so that they can be bundled later and I can use them on my website, however I followed the instructions and have looked online and can't make it work.</p>
  <pre><code>//.env
  VAR=1234
  </code></pre>
  <pre><code>// created a webpack.config.js with the following code
  const Dotenv = require('dotenv-webpack');
  
  module.exports = {
    plugins: [
      new Dotenv()
    ]
  };
  </code></pre>
  <pre><code>// index.js
  console.log(process.env.VAR);
  // undefined
  </code></pre>
  <p>I'm not sure what to do because I've followed the example in: <a href="https://github.com/mrsteele/dotenv-webpack" rel="nofollow noreferrer">https://github.com/mrsteele/dotenv-webpack</a> and it seems like it should be easy...</p>