gruntjs / grunt-contrib-requirejs
使用r.js优化require.js项目
define("b",[],function(){return function(e){console.log(e)}}),define("a",{color:"black"}),require.config({paths:{a:"lib/a",b:"b"}}),require(["b","a"],function(e,t){e(t.color)}),define("main",function(){});