Skip to content

Instantly share code, notes, and snippets.

@samueleresca
Created October 17, 2015 13:55
Show Gist options
  • Save samueleresca/d3412eb0d2a0007d36fc to your computer and use it in GitHub Desktop.
Save samueleresca/d3412eb0d2a0007d36fc to your computer and use it in GitHub Desktop.
//Main config file: http://requirejs.org/docs/api.html#config-baseUrl
require.config({
//Define 3rd party plugins dependencies
paths: {
hammer: "external/hammer.min"
}
});
//Main module
require(["module-one", "module-two", "module-three"], function () {
console.log("Main: loaded");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment