title: RequireJS: loading different files according environment
body: <p>Is there any functionality to load different files according on current project environment (development or production for example)? I mean something, that helps me transparently loading minified or full files. I read about multiversion loading, but multiversioning means that I need to specify version of file.
  <br>For example I have module.js file with my module. In this file I need to load jQuery:</p>
  
  <pre><code>require(['jquery]);
  </code></pre>
  
  <p>But I have minified and full version of jQuery and I want to load different files. I am thinking about something like this in config:</p>
  
  <pre><code>   require.config({
          paths: {
              'jquery' : function(){
                  if( MODE == 'DEV' ){
                      return 'jquery';
                  }else{
                      return 'jquery.min'
                  }
              }
          }
      });
  </code></pre>
  
  <p>Or, maybe, something similar.</p>