Skip to content

Instantly share code, notes, and snippets.

@rgstephens
Created November 1, 2014 05:06
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 rgstephens/4e7f41665f52066264fa to your computer and use it in GitHub Desktop.
Save rgstephens/4e7f41665f52066264fa to your computer and use it in GitHub Desktop.
require.config({
paths: {
jquery: '../bower_components/jquery/dist/jquery',
foundation: '../bower_components/foundation/js/foundation'
},
shim: {
bootstrap: {
deps: ['jquery'],
exports: 'jquery'
},
foundation: {
deps: ['jquery'],
exports: 'foundation'
}
}
});
require(['app', 'jquery', 'foundation'], function (app, $, foundation) {
'use strict';
// use app here
console.log(app);
console.log('Running jQuery %s', $().jquery);
$(document).ready(function() {
console.log('document load foundation');
$(this).foundation();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment