Skip to content

Instantly share code, notes, and snippets.

@ryanramage
Last active December 17, 2015 19:19
Show Gist options
  • Save ryanramage/5659206 to your computer and use it in GitHub Desktop.
Save ryanramage/5659206 to your computer and use it in GitHub Desktop.
Make sure you replace FILLME with values.
(function (root, factory) {
if (typeof exports === 'object') {
module.exports = factory( require('FILLME_A'), require('FILLME_B'), require('FILLME_C'));
} else if (typeof define === 'function' && define.amd) {
define(['FILLME_A', 'FILLME_B', 'FILLME_C'],factory);
} else {
root.FILLME_GLOBAL_NAME = factory(root.FILLME_A, root.FILLME_B, root.FILLME_C);
}
}(this, function (FILLME_A, FILLME_B, FILLME_C) {
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment