Skip to content

Instantly share code, notes, and snippets.

@vaibhav93
Created November 8, 2015 15:30
Show Gist options
  • Save vaibhav93/fe28db799dc441c7ae6b to your computer and use it in GitHub Desktop.
Save vaibhav93/fe28db799dc441c7ae6b to your computer and use it in GitHub Desktop.
requirejs.config({
baseUrl: 'js/lib',
paths: {
//jquery: 'jquery-1.11.3.min', //no need to give path if jquery.js is located in baseUrl
knockout: 'knockout-3.3.0.js',
Materialize: '../materialize', //vanilla materialize .. no amd version
app: '../app',
hammerjs: 'hammer.min',
velocity: 'velocity.min',
jqueryHammer: 'jquery.hammer',
jqueryEasing: 'materialize/js/jquery.easing.1.3',
},
shim: {
'Materialize': ['jquery', 'hammerjs', 'jqueryHammer', 'velocity']
}
});
require(['app'], function () {
console.log('loaded')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment