Created
March 31, 2016 01:52
-
-
Save mtmr0x/a886130f149baf6228f8fb024c583a73 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Require all .js and .jsx files inside tree | |
| let reactFiles = require.context("./components", true, /^(.*\.(jsx?$))[^.]*$/igm); | |
| reactFiles.keys().forEach(function(key){ | |
| reactFiles(key); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment