Skip to content

Instantly share code, notes, and snippets.

@Axighi
Created Nov 18, 2016
Embed
What would you like to do?
var req = require.context("../someDir", true, /^(.*\.(js$))[^.]*$/igm);
req.keys().forEach(function(key){
req(key);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment