title: Can webpack bundle js files without require or import? Q2: Why is a graph needed?
body: <p>Im new to webpack and as i understand it, it will create a graph starting on the entry(ies) point and based on the require commands specified in each script thereafter.</p>
  
  <p><strong>Question 1:</strong><br>
  I was wondering if there's a way for webpack to bundle up a bunch of specified files ( say all the files in a folder and all its subfolders ) somehow.</p>
  
  <p><strong>Question 2</strong><br>
  Im not sure why it needs to create a graph to begin with. Wouldnt it be enough to keep a record of each library needed and only include it once at the final bundle.js script? Why a graph?</p>
  
  <p>Thanks a lot</p>