7 lines
185 B
TypeScript
7 lines
185 B
TypeScript
|
function requireAll(r: any) {
|
||
|
r.keys().forEach(r);
|
||
|
}
|
||
|
|
||
|
requireAll((<any>require).context('../', true, /\.html$/));
|
||
|
requireAll((<any>require).context('../images/', true, /\.(.+)$/));
|