title: Webpack dll import is not defined
body: <p>I am trying to put a bunch of libs on the DLL following guides like <a href="https://medium.com/@soederpop/webpack-plugins-been-we-been-keepin-on-the-dll-cdfdd6cb8cd7" rel="nofollow noreferrer">react-boilerplate</a> and <a href="https://robertknight.me.uk/posts/webpack-dll-plugins/" rel="nofollow noreferrer">this one</a>.</p>
  
  <p>When I build and run, the DLL files are given as not defined.
  I'm probably missing something I did a separated webpack to build the dll:</p>
  
  <pre><code>import webpack from 'webpack'
  const library = '[name]'
  export default {
    entry: {
      'lokka': ['lokka', 'lokka-transport-http', 'socket.io-client']
      /** Other libs **/
    },
    output: {
      filename: '[name].dll.js',
      path: 'build/',
      library: library
    },
    plugins: [
      new webpack.DllPlugin({
        path: 'build/[name]-manifest.json',
        name: library
      })
    ]
  }
  </code></pre>
  
  <p>And added the references to the manifest.json</p>
  
  <pre><code>import webpack from 'webpack'
  const desiredLibs = [
    'lokka'
  ]
  const plugins = desiredLibs.map((lib) =&gt; {
    return new webpack.DllReferencePlugin({
      context: process.cwd(),
      manifest: require(`../build/${lib}-manifest.json`)
    })
  })
  export const dllReference = () =&gt; {
    return { plugins }
  }
  export default dllReference
  </code></pre>
  
  <p>Was there anything else I should do?</p>
  
  <p>On my case, it is complaining that lokka is not found when the code is run.</p>