Skip to content

Instantly share code, notes, and snippets.

@jasonsturges
Created November 5, 2014 22:10
Show Gist options
  • Save jasonsturges/315adf2ff0a140227913 to your computer and use it in GitHub Desktop.
Save jasonsturges/315adf2ff0a140227913 to your computer and use it in GitHub Desktop.
Referencing RequireJS config instance

RequireJS config may be referenced via:

var config = requirejs.s.contexts._.config;

Given a require such as:

require.config({
    property: "value"
});

Property may be accessed such as:

var config = requirejs.s.contexts._.config;
config.property;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment