Closed desandro closed 11 years ago
Here's my solution:
requirejs.config({
// change base_path to bower_components
baseUrl: '../bower_components/',
// add path config for jQuery
// see http://requirejs.org/docs/jquery.html#modulename
paths: {
jquery: 'jquery/jquery'
}
});
// require jQuery bridget, which will enable $.fn.packery
requirejs( [ 'jquery-bridget/jquery.bridget', 'packery/packery' ], function() {
var $ = window.jQuery
$('#basic').packery();
});
I'll add this to the documentation shortly.
whoops, closing here.
From metafizzy/packery#20