{"action":"closed","issue":{"url":"https://api.github.com/repos/gruntjs/grunt-contrib-requirejs/issues/94","repository_url":"https://api.github.com/repos/gruntjs/grunt-contrib-requirejs","labels_url":"https://api.github.com/repos/gruntjs/grunt-contrib-requirejs/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/gruntjs/grunt-contrib-requirejs/issues/94/comments","events_url":"https://api.github.com/repos/gruntjs/grunt-contrib-requirejs/issues/94/events","html_url":"https://github.com/gruntjs/grunt-contrib-requirejs/issues/94","id":63675083,"number":94,"title":"Multiple configurations not handling paths correctly","user":{"login":"oak-tree","id":667153,"avatar_url":"https://avatars.githubusercontent.com/u/667153?v=3","gravatar_id":"","url":"https://api.github.com/users/oak-tree","html_url":"https://github.com/oak-tree","followers_url":"https://api.github.com/users/oak-tree/followers","following_url":"https://api.github.com/users/oak-tree/following{/other_user}","gists_url":"https://api.github.com/users/oak-tree/gists{/gist_id}","starred_url":"https://api.github.com/users/oak-tree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oak-tree/subscriptions","organizations_url":"https://api.github.com/users/oak-tree/orgs","repos_url":"https://api.github.com/users/oak-tree/repos","events_url":"https://api.github.com/users/oak-tree/events{/privacy}","received_events_url":"https://api.github.com/users/oak-tree/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T09:24:17Z","updated_at":"2016-03-04T21:15:22Z","closed_at":"2016-03-04T21:15:22Z","body":"Accroding to `requirejs` docs multiply configuration  will be merge with the last one winning on conflict,\r\n\r\nWe have twoo files: \r\n\r\n1. `prod.js`\r\n2. `dev.js`\r\n\r\neach of those file call to `require.config` and set up some paths and maps. When we are building dev version we are merging the two files into `main.js`.\r\n\r\nThis works good with grunt server as the expect behavior of requirejs is to merging the two configuration - (more info can be found https://github.com/jrburke/requirejs/issues/826)\r\n\r\nBut when using `grunt-contrib-requirejs` with \r\n\r\n        baseUrl: yeomanConfig.app + '/scripts',\r\n                    optimize: 'none',\r\n                    name : 'main',\r\n\t\t    mainConfigFile : yeomanConfig.app + '/scripts/main.js',\r\n                    out : '<%= yeoman.dist %>/scripts/main.js',\r\n                    useStrict: true,\r\n                    findNestedDependencies: true\r\n\r\nthis failed as it does not consider `paths` and `maps` from the second call of `require.config`\r\n\r\nany ideas how to over come this ?\r\n\r\n\r\n"}}