Is there any functionality to load different files according on current project environment (development or production for example)? I mean something, that helps me transpar
If someone still want to know how to do that:
require.config({ paths: { 'jquery' : (function(){ if( MODE == 'DEV' ){ return 'jquery'; }else{ return 'jquery.min' } })() } });
This function is self invoking anonymous function. It invokes immediately in the definition place.