require([ 'config' ], function() {
  var getUrlArgs = function() {
    var search = document.location.search || '';
    if (search.indexOf('?') === 0) {
      search = search.substring(1);
    }
    return search;
  };
  require.config({
    deps : [ 'js/app' ],
    paths : {
      'js/app' : 'app'
    },
    urlArgs : getUrlArgs()
  });
});

require([ 'config' ], function() {
  var getUrlArgs = function() {
    if (window.jsVersion === undefined) {
      return '';
    }
    return 'v=' + window.jsVersion;
  };
  require.config({
    deps : [ 'js/app' ],
    paths : {
      'js/app' : 'app'
    },
    urlArgs : getUrlArgs()
  });
});

Update urlArgs support for production build
Update urlArgs support for production build