I'm learning how to use Webpack and Browserify so I'm still new at this. It seems to me that there should be an easy way to require entire dirs similar to ./dir/**/*.js but that doesn't seem possible. So if I understand correctly, I only have the following options:
- Put all my require() statements in my entry file (app.js).
- Create an index.js file in each of the directories that I want to require and add require statements in that file.
- Use the require-dir package (having npm problems with this one).
Am I missing something?