Skip to content

Instantly share code, notes, and snippets.

@stryju
Created January 30, 2015 17:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stryju/b072e7d1201154a50fd3 to your computer and use it in GitHub Desktop.
Save stryju/b072e7d1201154a50fd3 to your computer and use it in GitHub Desktop.
requirejs config shared between app and optimizer
( function( requirejs ) {
'use strict';
requirejs.config({
// ... config goes here
});
})( typeof exports === 'object' ? {
config : function ( cfg ) {
'use strict';
module.exports = cfg;
}
} : requirejs );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment