Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- importAll(r) {
- let k = r.keys().map(n => n.replace('./',''));
- let map = r.keys().map(r);
- return (((o,a,b)=>(a.forEach((c,i)=>o[c]=b[i])||o)))({},k,map);
- }
- importAll(require.context('./assets', false, /\.(png|jpe?g|svg)$/))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement