I am trying to add a jQuery Plugin waypoint.js to my theme. I did the following:
File: app/design/frontend/name/themename/requirejs_config.js
var config = {
map: {
'*': {
waypoint:'js/waypoint'
}
}
};
JS File is here: app/design/frontend/name/themename/web/js/waypoint.js
I call it in a phtml file:
require(['jquery','waypoint'],function($){
});
The Chrome debugging tool shows me an error now, can't find that waypoing.js in the static folder here:
Uncaught SyntaxError: Unexpected identifier require.js:1895 GET
pub/static/frontend/name/themename/de_CH/waypoint.js
The file waypoint.js does not exist in that folder. How to bring it there?