I\'m new to RequireJS. I\'m writing a number of custom bindings in Knockout.js and want to split them up using modules.
The layout of my code at the moment is:
Use "packages" in require config. Here the valid answer for you question topic
require.config({
packages: [
{
name: 'packagename',
location: 'path/to/your/package/root', // default 'packagename'
main: 'scriptfileToLoad' // default 'main'
}]
... some other stuff ...
});
Inside of package you will be able to use relative paths.