Dependency Management Got Awesome CommonJS and AMD Compliant dependency loader for modern web apps

Inject.setModuleRoot

0.6.x

OLD: This is an old version of documentation. You probably want the most recent version of this document, from the sidebar on the right.
Inject.setModuleRoot('/path/to/js');
Inject.setModuleRoot('http://example.com/path/to/js');

Specify the path to your “modules” directory. This path can either be defined with a leading slash for same-server downloads, or can be given a full http URL for absolute paths or instances where you might be using a CDN with Inject. Inject uses this path when converting a module’s identifier into a URL.

comments powered by Disqus