title: How to properly use lerna and webpack when dealing with a monorepo
body: <p>I am structuring a monorepo that will contain all the single components of a UI kit built with React.</p>
  
  <p>I am using <a href="https://github.com/lerna/lerna" rel="noreferrer">lerna</a> because I have no experience with monorepo/multi packages configuration, now I have this structure:</p>
  
  <pre><code>index.js
  packages/
    pack1/
    pack2/
  </code></pre>
  
  <p>I want to build every package with <code>webpack</code> but want to use only a single <code>webpack.config.js</code> in the root folder and a single command to create a <code>pack*.dist.js</code> in every package directory.</p>
  
  <p>Is it possible? Any direction?</p>