Skip to content

Instantly share code, notes, and snippets.

@yyx990803
Created January 27, 2014 16:40
Show Gist options
  • Select an option

  • Save yyx990803/8652097 to your computer and use it in GitHub Desktop.

Select an option

Save yyx990803/8652097 to your computer and use it in GitHub Desktop.
umd
;(function(){
// module content
if (typeof exports == "object") {
module.exports = require("{{configName}}");
} else if (typeof define == "function" && define.amd) {
define(function(){ return require("{{configName}}"); });
} else {
this["{{standaloneName}}"] = require("{{configName}}");
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment