Created by: timlogemann
I would like to add support for the DirectoryNamedWebpackPlugin.
This allows users like myself to create file structures similar to:
components/
|- Counter/
|- Counter.jsx
|- Counter.css
|- ... tens of other modules...
Rather than:
components/
|- Counter/
|- index.js
|- Counter.jsx
|- Counter.css
|- ... tens of other modules...
Which can save you from writing hundreds of index.js files just to import and export the default component.
Some screenshots detailing the effects of this change:
I've added true by default for the plugin as it will use an existing index.js over a file with the same name as the parent directory.