I am new to RequireJS and it seems that this is actually not possible, but I will continue anyway and ask to skip if I missed something.
The docs say:
This setting assumes that you save all your JavaScript files in the scripts directory in your project.
But what if I need to require files from my installed file bower in bower_components:
As you can see, not all libraries have the same directory hierarchy and naming convention.
So, I was wondering if there is an easy way to require these bower libraries without knowing where their main files are located, maybe just saying
require('jquery-mousewheel'); require('loadash');
?
source share