title: webpack build to multiple files
body: <p>I have web pack application and want to build output multiple files not a single javascript file. for example if I have such folder structure</p>
  
  <pre><code>components
   1.js
   2.js
  actions
   1.js.
   2.js
  </code></pre>
  
  <p>my webpack build have to compile files in same folder structure. How i can achieve that?</p>
  
  <p>I tried babel cli:</p>
  
  <pre><code>babel ./src --out-dir ./lib --source-maps --presets es2015,react --plugins babel-plugin-add-module-exports,babel-plugin-transform-decorators-legacy,babel-plugin-transform-class-properties --watch
  </code></pre>
  
  <p>It outputs files as I wanted but getting error </p>
  
  <blockquote>
    <p>Cannot resolve module</p>
  </blockquote>
  
  <p>Because it does not know anything about webpack resolve.</p>
  
  <p>Any suggestions?</p>