title: How to use Webpack to combine JSON files from all subdirectories into one?
body: <p>Say I have a directory structured like this:</p>
  
  <pre><code>1. folder A
    1a. some_file.js
    1b. data.json
  2. folder B
    2a. folder B1
       2a1. other_file.json
       2a2. data.json
    2b. folder B2
       2b1. data.json
  3. output.json
  </code></pre>
  
  <p>Is there a webpack loader that can combine <code>data.json</code> in all subfolders, and output it to <code>output.json</code>?</p>
  
  <p>I've found <a href="https://www.npmjs.com/package/json-files-merge-loader" rel="noreferrer">https://www.npmjs.com/package/json-files-merge-loader</a> that seems to do something similar, but it seems to ask for each path to <code>data.json</code>, while I need something that goes through all folders and subfolders for <code>data.json</code>. All <code>data.json</code> keys are unique, and I want <code>output.json</code> to be one JSON object containing all key/value pair from all <code>data.json</code>.</p>