message no. 157712
Posted by dka in #github at 2016-11-25T00:04:24Z
in webpack, I have a directory B that contains files which are all exported by index.js, the parent directory is A, and it requires and export B and it's brother directory with the same semantic. Everytime when I add a file next to B/index.js I have to add it in index.js, everytime I add a B brother directory I have to add it to A/index.js , is there a way to load the tree structure in a more elegant way that doesn't need me to update files