Optimize/build modules under parallel directories using the same config file in RequireJS
问题 I have a feeling that the title just might not be explanatory :) Setup Suppose that I have the following structure: where app.js files are main bootstrapping/entry modules for the applications that look like this: app01 require.config({}); require([ 'app/component1.js' ], function(component){ // do something with component1 }); app02 require.config({}); require([ 'app/component2.js' ], function(component){ // do something with component2 }); which both work with appropriate index.html files.