Skip to content

Instantly share code, notes, and snippets.

@edwardhotchkiss
Created August 17, 2013 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardhotchkiss/6255228 to your computer and use it in GitHub Desktop.
Save edwardhotchkiss/6255228 to your computer and use it in GitHub Desktop.
// configure
require.config({
baseUrl: './dist',
paths: {
'skeleton': 'wrapper-demo-0.0.1.min'
},
shim: {
skeleton: {
exports: 'Skeleton',
deps: []
}
}
});
// initialize
require(['skeleton'], function(Skeleton) {
'use strict';
var skeleton = new Skeleton({ name : 'skeletonAMD' });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment