As in the topic. My file structure is:
js/
|- bootstrap
| |- module1
| |- module2
|
|- jquery.min.js
|- main.js
and my main.js file is
requirejs.config({
paths: {
dropdowns : 'bootstrap/module1'
,fixes : 'bootstrap/module1'
}
,shim: {
'jquery.min' : ['jquery']
}
});
requirejs(['jquery', 'dropdowns', 'fixes'], function ( $, Dropdowns, Fixes ) {
console.log( $ );
var fixes = new Fixes();
});
now... it throws the following error in the console:
GET http://myurl/myapp/js/jquery.js 404 (Not Found)
as we can see it looses the dot with shim. My question is "how to load a file like 'jquery.min.js' where are dots before .js part?"