title: webpack: output original files and folders structures
body: <p>I have a simple configuration in webpack:</p>
  
  <pre><code>      mode: 'development',
        entry: './server/bin/www.js',
        output: {
          filename: '[name].[hash].bundle.js'
        },
        target: 'node',
  </code></pre>
  
  <p>the files are bundled in <code>dist</code> folder:
  <code>main.3e977541b60f4b853862.bundle.js</code>.</p>
  
  <p>How I can change that to be the original folder and files structure?</p>
  
  <pre><code>dist/bin/www.js
  
  dist/a.js
  
  dist/importfolder/b.js
  </code></pre>