Skip to content

Instantly share code, notes, and snippets.

@sebmarkbage
Created March 22, 2012 21:16
Show Gist options
  • Save sebmarkbage/2164638 to your computer and use it in GitHub Desktop.
Save sebmarkbage/2164638 to your computer and use it in GitHub Desktop.
Using options
var loader = require('../path/to/link');
loader.alias('package', '../path/to/package.js');
loader.alias('package2', '../path/to/package2.js');
loader.base('../path/to/my/root/folder/');
loader.load('main');
<script src="../path/to/link.js" data-main="bootstrap.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment