Manual:$wgResourceModules

Details

 * index
 * camelCase


 * scripts
 * styles

Examples
Here's a basic example for usage in an extension. You'd put this in the main php file like /extensions/Vector/Vector.php
 * Advanced example in Extension:Vector

Parameters:
 * remoteBasePath – path to find the module file via the web server
 * localBasePath – path to find the module file on the server filesystem

Loading module
See also ResourceLoader/Documentation/Using_with_extensions: