Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 10, 2014 23:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save devdays/2391729c9b9b4b6f89ca to your computer and use it in GitHub Desktop.
Object JavaScript require config
requirejs.config({
//By default load any module IDs from js/lib
baseUrl: 'Scripts',
//except, if the module ID starts with "app",
//load it from the Scripts/app directory. paths
//config is relative to the baseUrl, and
//never includes a ".js" extension since
//the paths config could be for a directory.
paths: {
app: '../app'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment