jrburke/r.js — Issue #81: Allow reading config from main.js file
Author: jrburke
Created: 2012-01-13 21:26:25+00:00
State: open

To avoid having to duplicate the config in main.js file and in build config, allow a build config to read the main.js config. Maybe something like 'configFile': 'path/to/main.js'.

Since there can be multiple build targets, i don't think it makes sense to just automatically read the config from the main.js file, and often the build config is different than the main.js file, so go with an explicit opt-in.

That config should be set after default config, but any build config in the build flie/command line should take final precedence.