Closed AndrewEastwood closed 10 years ago
Any reason you can't do this in your AMD path configuration?
I've tried to use path config for that:
path: {
lib: 'default/js/libs',
collection: 'default/js/collections',
model: 'default/js/models',
view: 'default/js/views',
// and path to handlebars
handlebars: 'default/js/libs/handlebars'
}
and I have custom wrapper for handlebars:
define('lib/handlebars', [lib/extensions], function () { /* handlebars lib goes here */ return Handlebars; })
And it seems that the requirejs can't resolve define(['handlebars'])
in this case.
And? :)
Adding possibility to specify custom path to handlebars