title: Exclude directory from webpack
body: <p>I have a subproject within my app that contains its own <code>node_modules/</code> and such. It's isolated from the main project in terms of scripts, but should to be within it. <em>This may not make sense, but it's true</em>.</p>
  
  <p>The thing is, the node_modules (at least) are interfering with webpack. I'm getting errors like <code>Duplicate Identifier</code>, <code>Cannot redeclare block-scoped variable</code>, ...</p>
  
  <p>By simply deleting the subproject directory the bundling starts to work.</p>
  
  <hr>
  
  <p>Best solution scenario would be to add an exclude entry on the webpack config, but things don't work that way.</p>
  
  <p>How can I fix this? I can't find a solution!</p>