{"action":"created","issue":{"url":"https://api.github.com/repos/skrajewski/laravel-elixir-browserify/issues/12","labels_url":"https://api.github.com/repos/skrajewski/laravel-elixir-browserify/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/skrajewski/laravel-elixir-browserify/issues/12/comments","events_url":"https://api.github.com/repos/skrajewski/laravel-elixir-browserify/issues/12/events","html_url":"https://github.com/skrajewski/laravel-elixir-browserify/issues/12","id":57340926,"number":12,"title":"Multiple Bundles","user":{"login":"rawcreative","id":1143718,"avatar_url":"https://avatars.githubusercontent.com/u/1143718?v=3","gravatar_id":"","url":"https://api.github.com/users/rawcreative","html_url":"https://github.com/rawcreative","followers_url":"https://api.github.com/users/rawcreative/followers","following_url":"https://api.github.com/users/rawcreative/following{/other_user}","gists_url":"https://api.github.com/users/rawcreative/gists{/gist_id}","starred_url":"https://api.github.com/users/rawcreative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawcreative/subscriptions","organizations_url":"https://api.github.com/users/rawcreative/orgs","repos_url":"https://api.github.com/users/rawcreative/repos","events_url":"https://api.github.com/users/rawcreative/events{/privacy}","received_events_url":"https://api.github.com/users/rawcreative/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-11T16:37:59Z","updated_at":"2015-02-28T20:03:38Z","closed_at":null,"body":"As it stands right now, it's not possible to create multiple bundles, since multiple mix.browserify() calls only actually bundles the last call. \r\n\r\nTo get around this I refactored the plugin to allow for passing multiple bundle configs as the src param. This works, but it's kinda hacky, and it would work much better if the plugin only required a single param (which could optionally be an array of configs) instead of the current: src, options. \r\n\r\nI can submit a PR with either method if you'd like, the current way is backwards compatible, the latter (but better) method would be a breaking change.. thoughts?"},"comment":{"url":"https://api.github.com/repos/skrajewski/laravel-elixir-browserify/issues/comments/76543225","html_url":"https://github.com/skrajewski/laravel-elixir-browserify/issues/12#issuecomment-76543225","issue_url":"https://api.github.com/repos/skrajewski/laravel-elixir-browserify/issues/12","id":76543225,"user":{"login":"devinfd","id":468399,"avatar_url":"https://avatars.githubusercontent.com/u/468399?v=3","gravatar_id":"","url":"https://api.github.com/users/devinfd","html_url":"https://github.com/devinfd","followers_url":"https://api.github.com/users/devinfd/followers","following_url":"https://api.github.com/users/devinfd/following{/other_user}","gists_url":"https://api.github.com/users/devinfd/gists{/gist_id}","starred_url":"https://api.github.com/users/devinfd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devinfd/subscriptions","organizations_url":"https://api.github.com/users/devinfd/orgs","repos_url":"https://api.github.com/users/devinfd/repos","events_url":"https://api.github.com/users/devinfd/events{/privacy}","received_events_url":"https://api.github.com/users/devinfd/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T20:03:38Z","updated_at":"2015-02-28T20:03:38Z","body":"You say its better to twice call browserify(), but what if there were more than 2 bundles that needed to be created? Perhaps the array option is an acceptable solution until a better solution becomes available."}}