{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/grunt-usemin/issues/255","labels_url":"https://api.github.com/repos/yeoman/grunt-usemin/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/grunt-usemin/issues/255/comments","events_url":"https://api.github.com/repos/yeoman/grunt-usemin/issues/255/events","html_url":"https://github.com/yeoman/grunt-usemin/issues/255","id":24102739,"number":255,"title":"usemin and useminPrepare multiple targets","user":{"login":"razvan-panda","id":1758708,"avatar_url":"https://avatars.githubusercontent.com/u/1758708?v=3","gravatar_id":"","url":"https://api.github.com/users/razvan-panda","html_url":"https://github.com/razvan-panda","followers_url":"https://api.github.com/users/razvan-panda/followers","following_url":"https://api.github.com/users/razvan-panda/following{/other_user}","gists_url":"https://api.github.com/users/razvan-panda/gists{/gist_id}","starred_url":"https://api.github.com/users/razvan-panda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razvan-panda/subscriptions","organizations_url":"https://api.github.com/users/razvan-panda/orgs","repos_url":"https://api.github.com/users/razvan-panda/repos","events_url":"https://api.github.com/users/razvan-panda/events{/privacy}","received_events_url":"https://api.github.com/users/razvan-panda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yeoman/grunt-usemin/labels/waiting","name":"waiting","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"stephanebachelier","id":172615,"avatar_url":"https://avatars.githubusercontent.com/u/172615?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanebachelier","html_url":"https://github.com/stephanebachelier","followers_url":"https://api.github.com/users/stephanebachelier/followers","following_url":"https://api.github.com/users/stephanebachelier/following{/other_user}","gists_url":"https://api.github.com/users/stephanebachelier/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanebachelier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanebachelier/subscriptions","organizations_url":"https://api.github.com/users/stephanebachelier/orgs","repos_url":"https://api.github.com/users/stephanebachelier/repos","events_url":"https://api.github.com/users/stephanebachelier/events{/privacy}","received_events_url":"https://api.github.com/users/stephanebachelier/received_events","type":"User","site_admin":false},"milestone":null,"comments":45,"created_at":"2013-12-11T12:05:16Z","updated_at":"2015-07-18T09:08:49Z","closed_at":null,"body":"StackOverflow reference: http://stackoverflow.com/q/20517827/750216\r\n\r\nFrom the usemin issues it appears that usemin and useminPrepare support multiple targets in the latest version:\r\n\r\nuseminPrepare support:\r\n\r\n* https://github.com/yeoman/grunt-usemin/pull/162\r\n\r\n* https://github.com/yeoman/grunt-usemin/pull/206\r\n\r\nusemin support:\r\n\r\n* https://github.com/yeoman/grunt-usemin/issues/57\r\n\r\nI've tried using multiple targets with the following configuration:\r\n\r\n    useminPrepare:\r\n    {\r\n        foo:\r\n        {\r\n            dest: 'fooDist',\r\n            src: ['foo/index.html']\r\n        },\r\n        bar:\r\n        {\r\n            dest: 'barDist',\r\n            src: ['bar/index.html']\r\n        }\r\n    },\r\n    usemin:\r\n    {\r\n        foo:\r\n        {\r\n            options:\r\n            {\r\n                assetsDirs : ['fooDist']\r\n            },\r\n            html: ['fooDist/**/*.html'],\r\n            css: ['fooDist/styles/**/*.css']\r\n        },\r\n        bar:\r\n        {\r\n            options:\r\n            {\r\n                assetsDirs : ['barDist']\r\n            },\r\n            html: ['barDist/**/*.html'],\r\n            css: ['barDist/styles/**/*.css']\r\n        }\r\n    },\r\n\r\nbut I receive the following error:\r\n\r\n> Running \"usemin:foo\" (usemin) task Warning: Unsupported pattern: foo\r\n\r\n> Use --force to continue.\r\n\r\nUsing `grunt-usemin 2.0.2`\r\n\r\n`foo/index.html` and `bar/index.html` being the main pages for 2 single page applications.\r\n\r\nThanks for your help!"},"comment":{"url":"https://api.github.com/repos/yeoman/grunt-usemin/issues/comments/122515762","html_url":"https://github.com/yeoman/grunt-usemin/issues/255#issuecomment-122515762","issue_url":"https://api.github.com/repos/yeoman/grunt-usemin/issues/255","id":122515762,"user":{"login":"arthurvr","id":6025224,"avatar_url":"https://avatars.githubusercontent.com/u/6025224?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurvr","html_url":"https://github.com/arthurvr","followers_url":"https://api.github.com/users/arthurvr/followers","following_url":"https://api.github.com/users/arthurvr/following{/other_user}","gists_url":"https://api.github.com/users/arthurvr/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurvr/subscriptions","organizations_url":"https://api.github.com/users/arthurvr/orgs","repos_url":"https://api.github.com/users/arthurvr/repos","events_url":"https://api.github.com/users/arthurvr/events{/privacy}","received_events_url":"https://api.github.com/users/arthurvr/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T09:08:49Z","updated_at":"2015-07-18T09:08:49Z","body":"As told earlier, please stop the +1s and the :+1:s."}}