Created
November 8, 2015 15:30
-
-
Save vaibhav93/fe28db799dc441c7ae6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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